summaryrefslogtreecommitdiff
path: root/src/main/java/lv/enes/mc/eris_alchemy/utils/BlockUtils.java
blob: 88b62313fdbbb2d5e30d9e9140a7a270a37f1223 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package lv.enes.mc.eris_alchemy.utils;

import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;

import java.util.stream.Stream;

public final class BlockUtils {
	public static Stream<Block> streamTag(TagKey<Block> tag) {
		return TagUtils.stream(BuiltInRegistries.BLOCK, tag);
	}

	private BlockUtils() {}
}