Package com.minecolonies.core.colony
Class Colony
java.lang.Object
com.minecolonies.core.colony.Colony
- All Implemented Interfaces:
IColony
This class describes a colony and contains all the data and methods for manipulating a Colony.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongLast time the server was online.List of loaded chunks for the colony. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFreeBlock(@NotNull net.minecraft.world.level.block.Block block) Add a new free to interact block.voidaddFreePosition(@NotNull net.minecraft.core.BlockPos pos) Add a new free to interact position.voidaddGuardToAttackers(AbstractEntityCitizen IEntityCitizen, net.minecraft.world.entity.player.Player player) Add a guard to the list of attacking guards.voidaddLoadedChunk(long chunkPos, net.minecraft.world.level.chunk.LevelChunk chunk) Adds a loaded chunk to the colony listvoidaddVisitingPlayer(net.minecraft.world.entity.player.Player player) Add a visiting player.voidaddWayPoint(net.minecraft.core.BlockPos point, net.minecraft.world.level.block.state.BlockState block) Adds a waypoint to the colony.booleanCalled to check if the colony can be deleted by an automatic cleanup.claimNewChunk(net.minecraft.world.level.ChunkPos pos) Get the animal manager of the colony.net.minecraft.core.BlockPosReturns the center of the colony.getCitizen(int id) Get citizen from colony.Get the citizenManager of the colony.Get the matching citizen name file of the colony .it.unimi.dsi.fastutil.longs.Long2ObjectMap<ChunkClaimData> Get the claim data from the colony.net.minecraft.world.level.block.entity.BannerPatternLayersGetter for the colony flag patternsnet.minecraft.nbt.CompoundTagGet the NBT tag of the colony.Get the connection manager of the colony.intgetDay()Get the current day of the colony.net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> Returns the dimension ID.longgetDistanceSquared(@NotNull net.minecraft.core.BlockPos pos) Returns the squared (x, z) distance to the center.Get the event description manager of the colony.Get the event handler assigned to the colony.Get the event manager of the colony.Set<net.minecraft.world.level.block.Block> Get a copy of the freeBlocks list.Set<net.minecraft.core.BlockPos> Get a copy of the freePositions list.Get the graveManager of the colony.intgetID()Returns the ID of the colony.@NotNull List<net.minecraft.world.entity.player.Player> Returns a set of players receiving important messages for the colony.intGet the last contact of a player to the colony in hours.intReturns the amount of loaded chunkslongGet the last time mercenaries were used.@NotNull List<net.minecraft.world.entity.player.Player> Get the players in the colony which should receive the message.getName()Returns the name of the colony.Get the colony name style.doubleGetter for overall happiness.Get the packagemanager of the colony.@NotNull PermissionsReturns the permissions of the colony.Get the quest manager of the colony.Get the barbManager of the colony.Get the reproduction manager of the colony.@Nullable IRequestergetRequesterBuildingForPosition(@NotNull net.minecraft.core.BlockPos pos) Method used to get aIRequesterfrom a given Position.@NotNull IRequestManagerGet the currentIRequestManagerfor this Colony.Get the research manager.Get the buildingmanager of the colony.Get the colony level settings module.getState()Returns the colonies current state.Get the statistics manager of the colony.Getter for the default style of the colony.net.minecraft.ChatFormattingGetter for the colony team color.Get the colony style.Get the set of chunk positions which the colony is loading through ticketsGet the travelling manager of the colony.com.google.common.collect.ImmutableList<net.minecraft.world.entity.player.Player> Get all visiting players.Get the visitor manager of the colony.Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> Get all the waypoints of the colony.@NotNull IWorkManagerGet the Work Manager for the Colony.@Nullable net.minecraft.server.level.ServerLevelgetWorld()Returns the world the colony is in.booleanisActive()Is the colony active currently.booleanCheck if the colony is currently under attack by another player.booleanisCoordInColony(@NotNull net.minecraft.world.level.Level w, @NotNull net.minecraft.core.BlockPos pos) Determine if a given chunk coordinate is considered to be within the colony's bounds.booleanisDay()Whether it is day for the colonybooleanisRemote()Check if the colony is on the server or client.booleanCheck if we need to update the view's chunk ticket infobooleanCheck if attack of guard is valid.booleanisValidAttackingPlayer(net.minecraft.world.entity.player.Player player) Is player part of a wave trying to invade the colony?static @Nullable ColonyloadColony(@NotNull net.minecraft.nbt.CompoundTag compound, @Nullable net.minecraft.server.level.ServerLevel world, @NotNull net.minecraft.core.HolderLookup.Provider provider) Load a saved colony.voidMarks the instance dirty.voidonServerTick(net.neoforged.neoforge.event.tick.ServerTickEvent.Pre event) voidonWorldLoad(@NotNull net.minecraft.server.level.ServerLevel w) When the Colony's world is loaded, associate with it.voidonWorldTick(net.neoforged.neoforge.event.tick.LevelTickEvent.Pre event) Any per-world-tick logic should be performed here.voidonWorldUnload(@NotNull net.minecraft.world.level.Level w) Unsets the world if the world unloads.voidread(@NotNull net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider provider) Read colony from saved data.voidremoveFreeBlock(@NotNull net.minecraft.world.level.block.Block block) Remove a free to interact block.voidremoveFreePosition(@NotNull net.minecraft.core.BlockPos pos) Remove a free to interact position.voidremoveLoadedChunk(long chunkPos) Adds a chunk from the colony listvoidremoveVisitingPlayer(net.minecraft.world.entity.player.Player player) Remove a visiting player.voidremoveWorkOrderInView(int orderId) Send the message of a removed workOrder to the client.voidsetCanBeAutoDeleted(boolean canBeDeleted) This sets whether or not a colony can be automatically deleted Via command, or an on-tick check.voidsetColonyColor(net.minecraft.ChatFormatting colonyColor) Set up the colony color for team handling for pvp.voidsetColonyFlag(net.minecraft.world.level.block.entity.BannerPatternLayers colonyFlag) Set up the colony flag patterns for use in decorations etcvoidsetDimensionId(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimensionId) Sets the dimension ID, use with care!voidsetDirty(boolean dirty) Set the colony to be dirty.voidSets the name of the colony.voidsetNameStyle(String style) Set the colony name style.voidsetStructurePack(String style) Setter for the default pack of the colony.voidsetTextureStyle(String style) Set the texture style of the colony.static booleanshallUpdate(net.minecraft.world.level.Level world, int averageTicks) Calculate randomly if the colony should update the citizens.voidUpdates the pvping playeres.voidSets whether the colony has a child.booleanuseAdditionalChildTime(int amount) Tries to use a given amount of additional growth-time for childs.voidSave the time when mercenaries are used, to set a cooldown.net.minecraft.nbt.CompoundTagwrite(@NotNull net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider provider) Write colony to save data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.IColony
getWayPoints, writeToItemStack
-
Field Details
-
ticketedChunks
List of loaded chunks for the colony. -
lastOnlineTime
public long lastOnlineTimeLast time the server was online.
-
-
Method Details
-
updateAttackingPlayers
public void updateAttackingPlayers()Updates the pvping playeres. -
setColonyColor
public void setColonyColor(net.minecraft.ChatFormatting colonyColor) Set up the colony color for team handling for pvp.- Specified by:
setColonyColorin interfaceIColony- Parameters:
colonyColor- the colony color.
-
setColonyFlag
public void setColonyFlag(net.minecraft.world.level.block.entity.BannerPatternLayers colonyFlag) Set up the colony flag patterns for use in decorations etc- Specified by:
setColonyFlagin interfaceIColony- Parameters:
colonyFlag- the list of pattern-color pairs
-
loadColony
@Nullable public static @Nullable Colony loadColony(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @Nullable @Nullable net.minecraft.server.level.ServerLevel world, @NotNull net.minecraft.core.HolderLookup.Provider provider) Load a saved colony.- Parameters:
compound- The NBT compound containing the colony's data.world- the world to load it for.provider-- Returns:
- loaded colony.
-
read
public void read(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider) Read colony from saved data. -
getEventHandler
Get the event handler assigned to the colony.- Returns:
- the ColonyPermissionEventHandler.
-
write
public net.minecraft.nbt.CompoundTag write(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider) Write colony to save data. -
getDimension
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()Returns the dimension ID.- Specified by:
getDimensionin interfaceIColony- Returns:
- Dimension ID.
-
isRemote
public boolean isRemote()Description copied from interface:IColonyCheck if the colony is on the server or client. -
getResearchManager
Description copied from interface:IColonyGet the research manager.- Specified by:
getResearchManagerin interfaceIColony- Returns:
- the research manager object.
-
onWorldLoad
public void onWorldLoad(@NotNull @NotNull net.minecraft.server.level.ServerLevel w) When the Colony's world is loaded, associate with it.- Specified by:
onWorldLoadin interfaceIColony- Parameters:
w- World object.
-
onWorldUnload
public void onWorldUnload(@NotNull @NotNull net.minecraft.world.level.Level w) Unsets the world if the world unloads.- Specified by:
onWorldUnloadin interfaceIColony- Parameters:
w- World object.
-
onServerTick
public void onServerTick(@NotNull net.neoforged.neoforge.event.tick.ServerTickEvent.Pre event) - Specified by:
onServerTickin interfaceIColony
-
getWorkManager
Get the Work Manager for the Colony.- Specified by:
getWorkManagerin interfaceIColony- Returns:
- WorkManager for the Colony.
-
getFreePositions
Get a copy of the freePositions list.- Returns:
- the list of free to interact positions.
-
getFreeBlocks
Get a copy of the freeBlocks list.- Returns:
- the list of free to interact blocks.
-
addFreePosition
public void addFreePosition(@NotNull @NotNull net.minecraft.core.BlockPos pos) Add a new free to interact position.- Specified by:
addFreePositionin interfaceIColony- Parameters:
pos- position to add.
-
addFreeBlock
public void addFreeBlock(@NotNull @NotNull net.minecraft.world.level.block.Block block) Add a new free to interact block.- Specified by:
addFreeBlockin interfaceIColony- Parameters:
block- block to add.
-
removeFreePosition
public void removeFreePosition(@NotNull @NotNull net.minecraft.core.BlockPos pos) Remove a free to interact position.- Specified by:
removeFreePositionin interfaceIColony- Parameters:
pos- position to remove.
-
removeFreeBlock
public void removeFreeBlock(@NotNull @NotNull net.minecraft.world.level.block.Block block) Remove a free to interact block.- Specified by:
removeFreeBlockin interfaceIColony- Parameters:
block- state to remove.
-
onWorldTick
public void onWorldTick(@NotNull net.neoforged.neoforge.event.tick.LevelTickEvent.Pre event) Any per-world-tick logic should be performed here. NOTE: If the Colony's world isn't loaded, it won't have a world tick. Use onServerTick for logic that should _always_ run.- Specified by:
onWorldTickin interfaceIColony- Parameters:
event-LevelTickEvent
-
shallUpdate
public static boolean shallUpdate(net.minecraft.world.level.Level world, int averageTicks) Calculate randomly if the colony should update the citizens. By mean they update it at CLEANUP_TICK_INCREMENT.- Parameters:
world- the world.averageTicks- the average ticks to upate it.- Returns:
- a boolean by random.
-
getCenter
public net.minecraft.core.BlockPos getCenter()Returns the center of the colony. -
getName
Description copied from interface:IColonyReturns the name of the colony. -
setName
Sets the name of the colony. Marks dirty. -
getPermissions
Description copied from interface:IColonyReturns the permissions of the colony.- Specified by:
getPermissionsin interfaceIColony- Returns:
IPermissionsof the colony.
-
isCoordInColony
public boolean isCoordInColony(@NotNull @NotNull net.minecraft.world.level.Level w, @NotNull @NotNull net.minecraft.core.BlockPos pos) Description copied from interface:IColonyDetermine if a given chunk coordinate is considered to be within the colony's bounds.- Specified by:
isCoordInColonyin interfaceIColony- Parameters:
w- World to check.pos- Block Position.- Returns:
- True if inside colony, otherwise false.
-
getDistanceSquared
public long getDistanceSquared(@NotNull @NotNull net.minecraft.core.BlockPos pos) Description copied from interface:IColonyReturns the squared (x, z) distance to the center.- Specified by:
getDistanceSquaredin interfaceIColony- Parameters:
pos- Block Position.- Returns:
- Squared distance to the center in (x, z) direction.
-
getID
public int getID()Returns the ID of the colony. -
getLastContactInHours
public int getLastContactInHours()Description copied from interface:IColonyGet the last contact of a player to the colony in hours.- Specified by:
getLastContactInHoursin interfaceIColony- Returns:
- an integer with a describing value.
-
getWorld
@Nullable public @Nullable net.minecraft.server.level.ServerLevel getWorld()Returns the world the colony is in. -
getRequestManager
Description copied from interface:IColonyGet the currentIRequestManagerfor this Colony. Returns null if the current Colony does not support the request system.- Specified by:
getRequestManagerin interfaceIColony- Returns:
- the
IRequestManagerfor this colony, null if not supported.
-
markDirty
public void markDirty()Marks the instance dirty. -
canBeAutoDeleted
public boolean canBeAutoDeleted()Description copied from interface:IColonyCalled to check if the colony can be deleted by an automatic cleanup.- Specified by:
canBeAutoDeletedin interfaceIColony- Returns:
- true if so.
-
getRequesterBuildingForPosition
@Nullable public @Nullable IRequester getRequesterBuildingForPosition(@NotNull @NotNull net.minecraft.core.BlockPos pos) Description copied from interface:IColonyMethod used to get aIRequesterfrom a given Position. Is always a Building.- Specified by:
getRequesterBuildingForPositionin interfaceIColony- Parameters:
pos- The position to get the Building that acts as a requester.- Returns:
- The
IRequesterfrom the position, or null.
-
getMessagePlayerEntities
Description copied from interface:IColonyGet the players in the colony which should receive the message.- Specified by:
getMessagePlayerEntitiesin interfaceIColony- Returns:
- list of players
-
getImportantMessageEntityPlayers
@NotNull public @NotNull List<net.minecraft.world.entity.player.Player> getImportantMessageEntityPlayers()Description copied from interface:IColonyReturns a set of players receiving important messages for the colony.- Specified by:
getImportantMessageEntityPlayersin interfaceIColony- Returns:
- set of players.
-
removeWorkOrderInView
public void removeWorkOrderInView(int orderId) Send the message of a removed workOrder to the client.- Parameters:
orderId- the workOrder to remove.
-
addWayPoint
public void addWayPoint(net.minecraft.core.BlockPos point, net.minecraft.world.level.block.state.BlockState block) Adds a waypoint to the colony.- Specified by:
addWayPointin interfaceIColony- Parameters:
point- the waypoint to add.block- the block at the waypoint.
-
getOverallHappiness
public double getOverallHappiness()Getter for overall happiness.- Specified by:
getOverallHappinessin interfaceIColony- Returns:
- the overall happiness.
-
getWayPoints
public Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> getWayPoints()Get all the waypoints of the colony.- Specified by:
getWayPointsin interfaceIColony- Returns:
- copy of hashmap.
-
setCanBeAutoDeleted
public void setCanBeAutoDeleted(boolean canBeDeleted) This sets whether or not a colony can be automatically deleted Via command, or an on-tick check.- Specified by:
setCanBeAutoDeletedin interfaceIColony- Parameters:
canBeDeleted- whether the colony is able to be deleted automatically
-
getStructurePack
Getter for the default style of the colony.- Specified by:
getStructurePackin interfaceIColony- Returns:
- the style string.
-
setStructurePack
Setter for the default pack of the colony.- Specified by:
setStructurePackin interfaceIColony- Parameters:
style- the default string.
-
getServerBuildingManager
Get the buildingmanager of the colony.- Specified by:
getServerBuildingManagerin interfaceIColony- Returns:
- the buildingManager.
-
getCommonBuildingManager
- Specified by:
getCommonBuildingManagerin interfaceIColony
-
getGraveManager
Get the graveManager of the colony.- Specified by:
getGraveManagerin interfaceIColony- Returns:
- the graveManager.
-
getCitizenManager
Get the citizenManager of the colony.- Specified by:
getCitizenManagerin interfaceIColony- Returns:
- the citizenManager.
-
getVisitorManager
Get the visitor manager of the colony.- Specified by:
getVisitorManagerin interfaceIColony- Returns:
- the visitor manager.
-
getAnimalManager
Get the animal manager of the colony.- Specified by:
getAnimalManagerin interfaceIColony- Returns:
- the animal manager.
-
getRaiderManager
Get the barbManager of the colony.- Specified by:
getRaiderManagerin interfaceIColony- Returns:
- the barbManager.
-
getEventManager
Description copied from interface:IColonyGet the event manager of the colony.- Specified by:
getEventManagerin interfaceIColony- Returns:
- the event manager.
-
getStatisticsManager
Description copied from interface:IColonyGet the statistics manager of the colony.- Specified by:
getStatisticsManagerin interfaceIColony- Returns:
- the statistics manager.
-
getReproductionManager
Description copied from interface:IColonyGet the reproduction manager of the colony.- Specified by:
getReproductionManagerin interfaceIColony- Returns:
- the reproduction manager.
-
getEventDescriptionManager
Description copied from interface:IColonyGet the event description manager of the colony.- Specified by:
getEventDescriptionManagerin interfaceIColony- Returns:
- the event description manager.
-
getPackageManager
Get the packagemanager of the colony.- Specified by:
getPackageManagerin interfaceIColony- Returns:
- the manager.
-
getTravellingManager
Description copied from interface:IColonyGet the travelling manager of the colony.- Specified by:
getTravellingManagerin interfaceIColony- Returns:
- the travelling manager.
-
getConnectionManager
Description copied from interface:IColonyGet the connection manager of the colony.- Specified by:
getConnectionManagerin interfaceIColony- Returns:
- the connection manager.
-
getVisitingPlayers
public com.google.common.collect.ImmutableList<net.minecraft.world.entity.player.Player> getVisitingPlayers()Get all visiting players.- Returns:
- the list.
-
addVisitingPlayer
public void addVisitingPlayer(net.minecraft.world.entity.player.Player player) Description copied from interface:IColonyAdd a visiting player.- Specified by:
addVisitingPlayerin interfaceIColony- Parameters:
player- the player.
-
removeVisitingPlayer
public void removeVisitingPlayer(net.minecraft.world.entity.player.Player player) Description copied from interface:IColonyRemove a visiting player.- Specified by:
removeVisitingPlayerin interfaceIColony- Parameters:
player- the player.
-
getColonyTag
public net.minecraft.nbt.CompoundTag getColonyTag()Get the NBT tag of the colony.- Specified by:
getColonyTagin interfaceIColony- Returns:
- the tag of it.
-
isValidAttackingPlayer
public boolean isValidAttackingPlayer(net.minecraft.world.entity.player.Player player) Is player part of a wave trying to invade the colony?- Specified by:
isValidAttackingPlayerin interfaceIColony- Parameters:
player- the player to check..- Returns:
- true if so.
-
isValidAttackingGuard
Check if attack of guard is valid.- Specified by:
isValidAttackingGuardin interfaceIColony- Parameters:
entity- the guard entity.- Returns:
- true if so.
-
addGuardToAttackers
public void addGuardToAttackers(AbstractEntityCitizen IEntityCitizen, net.minecraft.world.entity.player.Player player) Add a guard to the list of attacking guards.- Specified by:
addGuardToAttackersin interfaceIColony- Parameters:
IEntityCitizen- the citizen to add.
-
isColonyUnderAttack
public boolean isColonyUnderAttack()Check if the colony is currently under attack by another player.- Specified by:
isColonyUnderAttackin interfaceIColony- Returns:
- true if so.
-
getTeamColonyColor
public net.minecraft.ChatFormatting getTeamColonyColor()Getter for the colony team color.- Specified by:
getTeamColonyColorin interfaceIColony- Returns:
- the ChatFormatting enum color.
-
getColonyFlag
public net.minecraft.world.level.block.entity.BannerPatternLayers getColonyFlag()Getter for the colony flag patterns- Specified by:
getColonyFlagin interfaceIColony- Returns:
- the list of pattern-color pairs
-
setDirty
public void setDirty(boolean dirty) Set the colony to be dirty.- Parameters:
dirty- if dirty.
-
usedMercenaries
public void usedMercenaries()Save the time when mercenaries are used, to set a cooldown.- Specified by:
usedMercenariesin interfaceIColony
-
getMercenaryUseTime
public long getMercenaryUseTime()Get the last time mercenaries were used.- Specified by:
getMercenaryUseTimein interfaceIColony- Returns:
- the mercenary use time.
-
useAdditionalChildTime
public boolean useAdditionalChildTime(int amount) Description copied from interface:IColonyTries to use a given amount of additional growth-time for childs.- Specified by:
useAdditionalChildTimein interfaceIColony- Parameters:
amount- amount to use- Returns:
- true if used up.
-
updateHasChilds
public void updateHasChilds()Description copied from interface:IColonySets whether the colony has a child.- Specified by:
updateHasChildsin interfaceIColony
-
addLoadedChunk
public void addLoadedChunk(long chunkPos, net.minecraft.world.level.chunk.LevelChunk chunk) Description copied from interface:IColonyAdds a loaded chunk to the colony list- Specified by:
addLoadedChunkin interfaceIColony- Parameters:
chunkPos- chunk to add
-
removeLoadedChunk
public void removeLoadedChunk(long chunkPos) Description copied from interface:IColonyAdds a chunk from the colony list- Specified by:
removeLoadedChunkin interfaceIColony- Parameters:
chunkPos- chunk to remove
-
getLoadedChunkCount
public int getLoadedChunkCount()Description copied from interface:IColonyReturns the amount of loaded chunks- Specified by:
getLoadedChunkCountin interfaceIColony- Returns:
- amount of chunks
-
getLoadedChunks
- Specified by:
getLoadedChunksin interfaceIColony
-
getState
Description copied from interface:IColonyReturns the colonies current state. -
isActive
public boolean isActive()Description copied from interface:IColonyIs the colony active currently. -
isDay
public boolean isDay()Description copied from interface:IColonyWhether it is day for the colony -
getTicketedChunks
Description copied from interface:IColonyGet the set of chunk positions which the colony is loading through tickets- Specified by:
getTicketedChunksin interfaceIColony- Returns:
- set of positions
-
setTextureStyle
Description copied from interface:IColonySet the texture style of the colony.- Specified by:
setTextureStylein interfaceIColony- Parameters:
style- the style to set.
-
getTextureStyleId
Description copied from interface:IColonyGet the colony style.- Specified by:
getTextureStyleIdin interfaceIColony- Returns:
- the string id of the style.
-
setNameStyle
Description copied from interface:IColonySet the colony name style.- Specified by:
setNameStylein interfaceIColony- Parameters:
style- the string id of the style.
-
getNameStyle
Description copied from interface:IColonyGet the colony name style.- Specified by:
getNameStylein interfaceIColony- Returns:
- the string id of the style.
-
getCitizenNameFile
Description copied from interface:IColonyGet the matching citizen name file of the colony .- Specified by:
getCitizenNameFilein interfaceIColony- Returns:
- the matching file.
-
isTicketedChunksDirty
public boolean isTicketedChunksDirty()Check if we need to update the view's chunk ticket info- Returns:
- true if dirty.
-
getDay
public int getDay()Description copied from interface:IColonyGet the current day of the colony. -
getQuestManager
Description copied from interface:IColonyGet the quest manager of the colony.- Specified by:
getQuestManagerin interfaceIColony- Returns:
- the quest manager.
-
getCitizen
Description copied from interface:IColonyGet citizen from colony.- Specified by:
getCitizenin interfaceIColony- Parameters:
id- the id of the cit.- Returns:
- the cit.
-
getSettings
Description copied from interface:IColonyGet the colony level settings module.- Specified by:
getSettingsin interfaceIColony- Returns:
- the settings module.
-
getClaimData
Get the claim data from the colony.- Returns:
- the claim data map.
-
claimNewChunk
-
setDimensionId
public void setDimensionId(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimensionId) Sets the dimension ID, use with care!- Parameters:
dimensionId-
-