Class BasicFertilizer

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.fertilizer.Fertilizer
net.darkhax.botanypots.data.recipes.fertilizer.BasicFertilizer
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>

public class BasicFertilizer extends Fertilizer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.item.crafting.Ingredient
     
    protected net.minecraft.world.item.crafting.Ingredient
     
    protected int
     
    protected int
     
    protected net.minecraft.world.item.crafting.Ingredient
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicFertilizer(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.crafting.Ingredient cropIngredient, net.minecraft.world.item.crafting.Ingredient soilIngredient, int minTicks, int maxTicks)
     
  • 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)
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.crafting.Ingredient
     
    int
     
    int
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.Ingredient
     

    Methods inherited from class net.darkhax.botanypots.data.recipes.fertilizer.Fertilizer

    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

    • ingredient

      protected net.minecraft.world.item.crafting.Ingredient ingredient
    • cropIngredient

      @Nullable protected net.minecraft.world.item.crafting.Ingredient cropIngredient
    • soilIngredient

      @Nullable protected net.minecraft.world.item.crafting.Ingredient soilIngredient
    • minTicks

      protected int minTicks
    • maxTicks

      protected int maxTicks
  • Constructor Details

    • BasicFertilizer

      public BasicFertilizer(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.Ingredient ingredient, @Nullable net.minecraft.world.item.crafting.Ingredient cropIngredient, @Nullable net.minecraft.world.item.crafting.Ingredient soilIngredient, int minTicks, int maxTicks)
  • 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 Fertilizer
    • 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 Fertilizer
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
    • getIngredient

      public net.minecraft.world.item.crafting.Ingredient getIngredient()
    • getCropIngredient

      @Nullable public net.minecraft.world.item.crafting.Ingredient getCropIngredient()
    • getSoilIngredient

      @Nullable public net.minecraft.world.item.crafting.Ingredient getSoilIngredient()
    • getMinTicks

      public int getMinTicks()
    • getMaxTicks

      public int getMaxTicks()