Class IPlantationModule.PlantationModuleResult.Builder
java.lang.Object
com.minecolonies.api.colony.buildingextensions.plantation.IPlantationModule.PlantationModuleResult.Builder
- Enclosing class:
IPlantationModule.PlantationModuleResult
Builder class for the
IPlantationModule.PlantationModuleResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbonemeal(net.minecraft.core.BlockPos position) Tell the planter he should use bonemeal on the given position.build(IPlantationModule module, net.minecraft.core.BlockPos workingPosition) Finishes the construction of the result.clear(net.minecraft.core.BlockPos position) Tell the planter he should clear an obstructed work position.harvest(net.minecraft.core.BlockPos position) Tell the planter he should harvest an item at the given position.Tell the planter he should go to a new field after this work is finished.Tell the planter he should go to a new position on the same field after this work is finished.plant(net.minecraft.core.BlockPos position) Tell the planter he should plant the given item on the position.
-
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
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
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.
-