Class WorkOrderBuildingView

java.lang.Object
com.minecolonies.core.colony.workorders.view.AbstractWorkOrderView
com.minecolonies.core.colony.workorders.view.WorkOrderBuildingView
All Implemented Interfaces:
IWorkOrder, IWorkOrderView

public class WorkOrderBuildingView extends AbstractWorkOrderView
The client side representation for a work order that the builder can take to build buildings.
  • Constructor Details

    • WorkOrderBuildingView

      public WorkOrderBuildingView()
  • Method Details

    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Description copied from interface: IWorkOrder
      Get the name of the work order, provides the custom name or the work order name when no custom name is given
      Returns:
      the display name for the work order
    • deserialize

      public void deserialize(@NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf)
      Description copied from interface: IWorkOrderView
      Deserialize the attributes and variables from the given buffer
      Specified by:
      deserialize in interface IWorkOrderView
      Overrides:
      deserialize in class AbstractWorkOrderView
      Parameters:
      buf - Byte buffer to deserialize.
    • shouldShowIn

      public boolean shouldShowIn(IBuildingView view)
      Description copied from interface: IWorkOrderView
      Whether this work order should be shown in a specific building.
      Parameters:
      view - the building view.
      Returns:
      a boolean