Class BasicPotInteraction
java.lang.Object
net.darkhax.bookshelf.api.data.recipes.RecipeBase<C>
net.darkhax.bookshelf.api.data.recipes.RecipeBaseData<net.minecraft.world.Container>
net.darkhax.botanypots.data.recipes.potinteraction.PotInteraction
net.darkhax.botanypots.data.recipes.potinteraction.BasicPotInteraction
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final List<net.minecraft.world.item.ItemStack>protected final net.minecraft.world.item.crafting.Ingredientprotected final net.minecraft.world.item.ItemStackprotected final net.minecraft.world.item.ItemStackprotected final net.minecraft.world.item.crafting.Ingredientprotected final net.minecraft.world.item.crafting.Ingredientprotected final net.darkhax.bookshelf.api.data.sound.Sound -
Constructor Summary
ConstructorsConstructorDescriptionBasicPotInteraction(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient heldTest, boolean damageHeld, net.minecraft.world.item.crafting.Ingredient soilTest, net.minecraft.world.item.crafting.Ingredient seedTest, net.minecraft.world.item.ItemStack newSoilStack, net.minecraft.world.item.ItemStack newSeedStack, net.darkhax.bookshelf.api.data.sound.Sound sound, List<net.minecraft.world.item.ItemStack> extraDrops) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot) booleancanApply(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot) List<net.minecraft.world.item.ItemStack>net.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.ItemStacknet.minecraft.world.item.ItemStacknet.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.crafting.Ingredientnet.darkhax.bookshelf.api.data.sound.SoundgetSound()booleanMethods inherited from class net.darkhax.botanypots.data.recipes.potinteraction.PotInteraction
getTypeMethods inherited from class net.darkhax.bookshelf.api.data.recipes.RecipeBaseData
assemble, canCraftInDimensions, getResultItem, matchesMethods inherited from class net.darkhax.bookshelf.api.data.recipes.RecipeBase
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Field Details
-
heldTest
protected final net.minecraft.world.item.crafting.Ingredient heldTest -
damageHeld
protected final boolean damageHeld -
soilTest
@Nullable protected final net.minecraft.world.item.crafting.Ingredient soilTest -
seedTest
@Nullable protected final net.minecraft.world.item.crafting.Ingredient seedTest -
newSoilStack
@Nullable protected final net.minecraft.world.item.ItemStack newSoilStack -
newSeedStack
@Nullable protected final net.minecraft.world.item.ItemStack newSeedStack -
sound
@Nullable protected final net.darkhax.bookshelf.api.data.sound.Sound sound -
extraDrops
-
-
Constructor Details
-
BasicPotInteraction
public BasicPotInteraction(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient heldTest, boolean damageHeld, @Nullable net.minecraft.world.item.crafting.Ingredient soilTest, @Nullable net.minecraft.world.item.crafting.Ingredient seedTest, @Nullable net.minecraft.world.item.ItemStack newSoilStack, @Nullable net.minecraft.world.item.ItemStack newSeedStack, @Nullable net.darkhax.bookshelf.api.data.sound.Sound sound, List<net.minecraft.world.item.ItemStack> extraDrops)
-
-
Method Details
-
canApply
public boolean canApply(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot) - Specified by:
canApplyin classPotInteraction
-
apply
public void apply(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack heldStack, BlockEntityBotanyPot pot) - Specified by:
applyin classPotInteraction
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer() -
getHeldTest
public net.minecraft.world.item.crafting.Ingredient getHeldTest() -
isDamageHeld
public boolean isDamageHeld() -
getSoilTest
@Nullable public net.minecraft.world.item.crafting.Ingredient getSoilTest() -
getSeedTest
@Nullable public net.minecraft.world.item.crafting.Ingredient getSeedTest() -
getNewSoilStack
@Nullable public net.minecraft.world.item.ItemStack getNewSoilStack() -
getNewSeedStack
@Nullable public net.minecraft.world.item.ItemStack getNewSeedStack() -
getSound
@Nullable public net.darkhax.bookshelf.api.data.sound.Sound getSound() -
getExtraDrops
-