Class WorkOrderBuildingView
java.lang.Object
com.minecolonies.core.colony.workorders.view.AbstractWorkOrderView
com.minecolonies.core.colony.workorders.view.WorkOrderBuildingView
- All Implemented Interfaces:
IWorkOrder,IWorkOrderView
The client side representation for a work order that the builder can take to build buildings.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.workorders.view.AbstractWorkOrderView
blueprint, box, colony, futureFields inherited from interface com.minecolonies.api.colony.workorders.IWorkOrder
WORK_ORDER_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Deserialize the attributes and variables from the given buffernet.minecraft.network.chat.ComponentGet the name of the work order, provides the custom name or the work order name when no custom name is givenbooleanshouldShowIn(IBuildingView view) Whether this work order should be shown in a specific building.Methods inherited from class com.minecolonies.core.colony.workorders.view.AbstractWorkOrderView
canBuildIgnoringDistance, clearBlueprint, getBlueprint, getBoundingBox, getClaimedBy, getColony, getCurrentLevel, getID, getLocation, getPriority, getRotationMirror, getStage, getStructurePack, getStructurePath, getTargetLevel, getTranslationKey, getWorkOrderType, isClaimed, loadBlueprint, setBlueprint, setClaimedBy, setColony, setID, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.workorders.IWorkOrder
getFileName
-
Constructor Details
-
WorkOrderBuildingView
public WorkOrderBuildingView()
-
-
Method Details
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()Description copied from interface:IWorkOrderGet 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:IWorkOrderViewDeserialize the attributes and variables from the given buffer- Specified by:
deserializein interfaceIWorkOrderView- Overrides:
deserializein classAbstractWorkOrderView- Parameters:
buf- Byte buffer to deserialize.
-
shouldShowIn
Description copied from interface:IWorkOrderViewWhether this work order should be shown in a specific building.- Parameters:
view- the building view.- Returns:
- a boolean
-