Class StateIngredientBlock
java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlock
- All Implemented Interfaces:
StateIngredient,Predicate<net.minecraft.world.level.block.state.BlockState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleannet.minecraft.world.level.block.BlockgetBlock()List<net.minecraft.world.level.block.state.BlockState>List<net.minecraft.world.item.ItemStack>inthashCode()net.minecraft.world.level.block.state.BlockStatecom.google.gson.JsonObjectbooleantest(net.minecraft.world.level.block.state.BlockState blockState) toString()voidwrite(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface at.petrak.hexcasting.common.recipe.ingredient.StateIngredient
descriptionTooltip
-
Constructor Details
-
StateIngredientBlock
public StateIngredientBlock(net.minecraft.world.level.block.Block block)
-
-
Method Details
-
test
public boolean test(net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
testin interfacePredicate<net.minecraft.world.level.block.state.BlockState>- Specified by:
testin interfaceStateIngredient
-
pick
- Specified by:
pickin interfaceStateIngredient
-
serialize
public com.google.gson.JsonObject serialize()- Specified by:
serializein interfaceStateIngredient
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writein interfaceStateIngredient
-
getDisplayedStacks
- Specified by:
getDisplayedStacksin interfaceStateIngredient
-
getDisplayed
- Specified by:
getDisplayedin interfaceStateIngredient
-
getBlock
public net.minecraft.world.level.block.Block getBlock() -
equals
-
hashCode
public int hashCode() -
toString
-