All Implemented Interfaces:
IBuildingExtensionModule, IPlantationModule

public class WarpedPlantsPlantModule extends BoneMealedPlantModule
Planter module for growing Items.WARPED_FUNGUS and Items.WARPED_ROOTS.
Requirements:
  1. All requirements from BoneMealedPlantModule
  • Constructor Details

    • WarpedPlantsPlantModule

      public WarpedPlantsPlantModule(IBuildingExtension field, String fieldTag, String workTag, net.minecraft.world.item.Item item)
      Default constructor.
      Parameters:
      field - the field instance this module is working on.
      fieldTag - the tag of the field anchor block.
      workTag - the tag of the working positions.
      item - the item which is harvested.
  • Method Details

    • getPercentageChance

      protected int getPercentageChance()
      Description copied from class: BoneMealedPlantModule
      Get the chance in percentages of being able to perform work on this field when asked. Defaults to BoneMealedPlantModule.DEFAULT_PERCENTAGE_CHANCE.
      Overrides:
      getPercentageChance in class BoneMealedPlantModule
      Returns:
      a number between 1 and 100.
    • getRequiredResearchEffect

      public net.minecraft.resources.ResourceLocation getRequiredResearchEffect()
      Description copied from interface: IPlantationModule
      Get the required research effect for this module. Null if there is no research required for this field.
      Specified by:
      getRequiredResearchEffect in interface IPlantationModule
      Overrides:
      getRequiredResearchEffect in class AbstractPlantationModule
      Returns:
      the key of where to find the effect.
    • getRequiredTool

      public EquipmentTypeEntry getRequiredTool()
      Description copied from interface: IPlantationModule
      Returns the requested tool type in order to work on this module.
      Returns:
      the tool to work on this module.