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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.item.crafting.Ingredientprotected net.minecraft.world.item.crafting.Ingredientprotected intprotected intprotected net.minecraft.world.item.crafting.Ingredient -
Constructor Summary
ConstructorsConstructorDescriptionBasicFertilizer(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 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) net.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.crafting.Ingredientintintnet.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.crafting.IngredientMethods inherited from class net.darkhax.botanypots.data.recipes.fertilizer.Fertilizer
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
-
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:
canApplyin classFertilizer
-
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 classFertilizer
-
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()
-