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>

public class BasicPotInteraction extends PotInteraction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final List<net.minecraft.world.item.ItemStack>
     
    protected final net.minecraft.world.item.crafting.Ingredient
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.world.item.crafting.Ingredient
     
    protected final net.minecraft.world.item.crafting.Ingredient
     
    protected final net.darkhax.bookshelf.api.data.sound.Sound
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicPotInteraction(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 Type
    Method
    Description
    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)
     
    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)
     
    List<net.minecraft.world.item.ItemStack>
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.darkhax.bookshelf.api.data.sound.Sound
     
    boolean
     

    Methods inherited from class net.darkhax.botanypots.data.recipes.potinteraction.PotInteraction

    getType

    Methods inherited from class net.darkhax.bookshelf.api.data.recipes.RecipeBaseData

    assemble, canCraftInDimensions, getResultItem, matches

    Methods inherited from class net.darkhax.bookshelf.api.data.recipes.RecipeBase

    getId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      protected final List<net.minecraft.world.item.ItemStack> 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:
      canApply in class PotInteraction
    • 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:
      apply in class PotInteraction
    • 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

      public List<net.minecraft.world.item.ItemStack> getExtraDrops()