All Implemented Interfaces:
IBuildingExtensionModule, IPlantationModule

public class CactusPlantModule extends UpwardsGrowingPlantModule
Planter module for growing Items.CACTUS.
Requirements:
  1. All requirements from UpwardsGrowingPlantModule
  • Constructor Details

    • CactusPlantModule

      public CactusPlantModule(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

    • isValidHarvestBlock

      protected boolean isValidHarvestBlock(net.minecraft.world.level.block.state.BlockState blockState)
      Description copied from class: UpwardsGrowingPlantModule
      Check if the block is a correct block for harvesting.
      Specified by:
      isValidHarvestBlock in class UpwardsGrowingPlantModule
      Parameters:
      blockState - the block state.
      Returns:
      whether the block can be harvested.
    • 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.