Class IPlantationModule.PlantationModuleResult
java.lang.Object
com.minecolonies.api.colony.buildingextensions.plantation.IPlantationModule.PlantationModuleResult
- Enclosing interface:
IPlantationModule
Class containing possible states that the planter AI can be in.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for theIPlantationModule.PlantationModuleResult. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPlantationModule.PlantationModuleResult.BuilderSimplest action, indicating no work was needed on the given position. -
Method Summary
Modifier and TypeMethodDescriptionWhat kind of action to perform.@Nullable net.minecraft.core.BlockPosGet the position to actually perform the action on.Get the plantation module this result was generated from.net.minecraft.core.BlockPosGet the working position.booleanWhether to reset the current field.booleanWhether to reset the current working position.
-
Field Details
-
NONE
Simplest action, indicating no work was needed on the given position.
-
-
Method Details
-
getModule
Get the plantation module this result was generated from.- Returns:
- the plantation module.
-
getWorkingPosition
public net.minecraft.core.BlockPos getWorkingPosition()Get the working position.- Returns:
- the working position.
-
getAction
What kind of action to perform.- Returns:
- the action type.
-
getActionPosition
@Nullable public @Nullable net.minecraft.core.BlockPos getActionPosition()Get the position to actually perform the action on.- Returns:
- the position to actually perform the action on.
-
shouldResetWorkingPosition
public boolean shouldResetWorkingPosition()Whether to reset the current working position.- Returns:
- true if so.
-
shouldResetCurrentField
public boolean shouldResetCurrentField()Whether to reset the current field.- Returns:
- true if so.
-