Package com.petrolpark.recipe.ingredient
Interface BlockIngredient<T extends BlockIngredient<T>>
- All Known Implementing Classes:
BlockIngredient.BlockTagIngredient,BlockIngredient.ImpossibleBlockIngredient,BlockIngredient.IntersectionBlockIngredient,BlockIngredient.SetBlockIngredient,BlockIngredient.SingleBlockIngredient,BlockIngredient.UnionBlockIngredient
public interface BlockIngredient<T extends BlockIngredient<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBlockIngredient.BlockIngredientType<T extends BlockIngredient<T>>static classstatic classstatic classstatic classstatic classBlockIngredient.SetBlockIngredient<T extends BlockIngredient<T>>static classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>getType()booleanisValid(net.minecraft.world.level.block.state.BlockState state) static BlockIngredient<?>read(net.minecraft.network.FriendlyByteBuf buffer) static voidstatic voidwrite(BlockIngredient<?> ingredient, net.minecraft.network.FriendlyByteBuf buffer) voidwrite(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
IMPOSSIBLE
-
-
Method Details
-
getType
BlockIngredient.BlockIngredientType<T> getType() -
isValid
boolean isValid(net.minecraft.world.level.block.state.BlockState state) -
getDisplayedItemStacks
net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDisplayedItemStacks()- Returns:
- An empty List if there is not a reasonably low number of possible Item Stacks
-
write
void write(net.minecraft.network.FriendlyByteBuf buffer) -
registerType
-
write
-
read
-