Interface IWorkOrderView

All Superinterfaces:
IWorkOrder
All Known Implementing Classes:
AbstractWorkOrderView, WorkOrderBuildingView, WorkOrderDecorationView, WorkOrderMinerView, WorkOrderPlantationFieldView

public interface IWorkOrderView extends IWorkOrder
  • Method Details

    • shouldShowIn

      boolean shouldShowIn(IBuildingView view)
      Whether this work order should be shown in a specific building.
      Parameters:
      view - the building view.
      Returns:
      a boolean
    • deserialize

      void deserialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Deserialize the attributes and variables from the given buffer
      Parameters:
      buf - Byte buffer to deserialize.
    • canBuildIgnoringDistance

      boolean canBuildIgnoringDistance(@NotNull @NotNull net.minecraft.core.BlockPos builderLocation, int builderLevel)
      Checks if a builder may accept this workOrder while ignoring the distance to the builder.
      Parameters:
      builderLocation - position of the builders own hut.
      builderLevel - level of the builders hut.
      Returns:
      true if so.