-
Method Summary
boolean
Checks if a builder may accept this workOrder while ignoring the distance to the builder.
void
deserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf)
Deserialize the attributes and variables from the given buffer
boolean
Whether this work order should be shown in a specific building.
Methods inherited from interface com.minecolonies.api.colony.workorders.IWorkOrder
clearBlueprint, getBlueprint, getBoundingBox, getClaimedBy, getColony, getCurrentLevel, getDisplayName, getFileName, getID, getLocation, getPriority, getRotationMirror, getStage, getStructurePack, getStructurePath, getTargetLevel, getTranslationKey, getWorkOrderType, isClaimed, loadBlueprint, setBlueprint, setClaimedBy, setColony, setID, setPriority
-
Method Details
-
shouldShowIn
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.RegistryFriendlyByteBuf 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.