Class IPlantationModule.PlantationModuleResult

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

public static class IPlantationModule.PlantationModuleResult extends Object
Class containing possible states that the planter AI can be in.
  • Field Details

  • Method Details

    • getModule

      public IPlantationModule 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.