Class IPlantationModule.PlantationModuleResult.Builder

java.lang.Object
com.minecolonies.api.colony.buildingextensions.plantation.IPlantationModule.PlantationModuleResult.Builder
Enclosing class:
IPlantationModule.PlantationModuleResult

public static class IPlantationModule.PlantationModuleResult.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
      Default constructor.
  • Method Details

    • pickNewField

      Tell the planter he should go to a new field after this work is finished.
      Returns:
      the builder instance for chaining.
    • pickNewPosition

      Tell the planter he should go to a new position on the same field after this work is finished.
      Returns:
      the builder instance for chaining.
    • plant

      public IPlantationModule.PlantationModuleResult.Builder plant(net.minecraft.core.BlockPos position)
      Tell the planter he should plant the given item on the position.
      Parameters:
      position - the position where to plant on.
      Returns:
      the builder instance for chaining.
    • bonemeal

      public IPlantationModule.PlantationModuleResult.Builder bonemeal(net.minecraft.core.BlockPos position)
      Tell the planter he should use bonemeal on the given position.
      Parameters:
      position - the position where to use bonemeal on.
      Returns:
      the builder instance for chaining.
    • harvest

      public IPlantationModule.PlantationModuleResult.Builder harvest(net.minecraft.core.BlockPos position)
      Tell the planter he should harvest an item at the given position.
      Parameters:
      position - the position where to harvest the plant from.
      Returns:
      the builder instance for chaining.
    • clear

      public IPlantationModule.PlantationModuleResult.Builder clear(net.minecraft.core.BlockPos position)
      Tell the planter he should clear an obstructed work position.
      Parameters:
      position - the position to clear.
      Returns:
      the builder instance for chaining.
    • build

      public IPlantationModule.PlantationModuleResult build(IPlantationModule module, net.minecraft.core.BlockPos workingPosition)
      Finishes the construction of the result.
      Returns:
      the result instance.