Package vazkii.botania.common.crafting
Class StateIngredients
java.lang.Object
vazkii.botania.common.crafting.StateIngredients
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StateIngredientType<AllOfExcludingStateIngredient> static final StateIngredientType<AnyOfStateIngredient> static final StateIngredientType<BlockStateIngredient> static final StateIngredientType<BlockTagIngredient> static final StateIngredientType<BlockTypeIngredient> static final StateIngredientstatic final com.mojang.serialization.Codec<StateIngredient> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, StateIngredient> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StateIngredientallOf(StateIngredient... ingredients) static StateIngredientallOfExcept(Collection<StateIngredient> ingredients, StateIngredient... exceptions) static StateIngredientanyOf(StateIngredient... ingredients) static StateIngredientof(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) static StateIngredientof(net.minecraft.world.level.block.Block block) static StateIngredientof(net.minecraft.world.level.block.state.BlockState state) static StateIngredientofExcept(StateIngredient ingredient, StateIngredient... exceptions) static voidsubmitRegistrations(BiConsumer<StateIngredientType<?>, net.minecraft.resources.ResourceLocation> r)
-
Field Details
-
TYPED_CODEC
-
TYPED_STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,StateIngredient> TYPED_STREAM_CODEC -
BLOCK_TYPE
-
BLOCK_STATE
-
BLOCK_TAG
-
ANY_OF
-
ALL_OF_EXCLUDING
-
NONE
-
-
Constructor Details
-
StateIngredients
public StateIngredients()
-
-
Method Details
-
submitRegistrations
public static void submitRegistrations(BiConsumer<StateIngredientType<?>, net.minecraft.resources.ResourceLocation> r) -
of
-
of
-
of
public static StateIngredient of(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) -
allOf
-
ofExcept
-
allOfExcept
public static StateIngredient allOfExcept(Collection<StateIngredient> ingredients, StateIngredient... exceptions) -
anyOf
-