Class StateIngredientBlocks
java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlocks
- All Implemented Interfaces:
StateIngredient,Predicate<net.minecraft.world.level.block.state.BlockState>
- Direct Known Subclasses:
StateIngredientTag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableSet<net.minecraft.world.level.block.Block> -
Constructor Summary
ConstructorsConstructorDescriptionStateIngredientBlocks(Collection<net.minecraft.world.level.block.Block> blocks) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected List<net.minecraft.world.level.block.Block>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 state) 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
-
Field Details
-
blocks
protected final com.google.common.collect.ImmutableSet<net.minecraft.world.level.block.Block> blocks
-
-
Constructor Details
-
StateIngredientBlocks
-
-
Method Details
-
test
public boolean test(net.minecraft.world.level.block.state.BlockState state) - 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
-
getBlocks
-
toString
-
equals
-
hashCode
public int hashCode()
-