Class RegionImpl
java.lang.Object
sawfowl.regionguard.implementsapi.data.RegionImpl
- All Implemented Interfaces:
org.spongepowered.api.data.persistence.DataSerializable
,Region
-
Nested Class Summary
Nested classes/interfaces inherited from interface sawfowl.regionguard.api.data.Region
Region.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdding a child region.builder()
boolean
Checking if there are child regions in the region.boolean
containsFlag
(String flagName) Checking if a flag is set in the region.boolean
containsFlag
(Flags flagName) Checking if a flag is set in the region.int
copy()
Create a copy of the current region.boolean
boolean
equalsOwners
(Region region) Checking for matching region owners.<T extends AdditionalData>
Optional<T>getAdditionalData
(org.spongepowered.plugin.PluginContainer container, String dataName, Class<T> clazz) Getting additional data that is created by other plugins.
After getting the data, they must be converted to the desired type.
Exemple: YourDataClass yourDataClass = (YourDataClass) additionalData;Getting a copy of the entire collection of the region's supplementary data.Recursive search and making a list of all child regions.List<org.spongepowered.api.block.entity.BlockEntity>
Getting a list of block entities in the region.
This operation can work overload the server.List<org.spongepowered.api.block.BlockState>
Getting a list of blocks in the region.
This operation can work overload the server.getChild
(org.spongepowered.math.vector.Vector3i position) Searching for a child region.
If no region is found, it will return the current region.Getting a list of child regions.Getting a list of the chunk numbers that the region occupies.long
Get the region creation time in unix format.Getting the region cuboid.Recursive search and enumeration of flagValues with parameters from the current region to the oldest parent.List<org.spongepowered.api.entity.Entity>
Getting a list of entities in the region.
This list will not contain players.
This operation can work overload the server.Optional<net.kyori.adventure.text.Component>
getExitMessage
(Locale locale) Getting region exit message.
If the specified localization is not found, the default localization will be checked.
If no default localization is found, the first value found will be returned or an empty optional value if the list is empty.Getting a collection of localized messages reporting region exits.
The key is the localization tag.org.spongepowered.api.util.Tristate
getFlagResult
(String flag, String source, String target) Getting the value of the flag in the region.org.spongepowered.api.util.Tristate
getFlagResult
(Flags flag, String source, String target) Getting the value of the flag in the region.org.spongepowered.api.util.Tristate
getFlagResultWhithoutParrents
(String flag, String source, String target) Getting the value of the flag if there is one.org.spongepowered.api.util.Tristate
getFlagResultWhithoutParrents
(Flags flag, String source, String target) Getting the value of the flag if there is one.getFlags()
Recursively search and list flagValues from the current region to the oldest parent.getFlagValues
(String flagName) Getting the values of the flag in the region.getFlagValues
(Flags flagName) Getting the values of the flag in the region.Optional<net.kyori.adventure.text.Component>
getJoinMessage
(Locale locale) Getting region join message.
If the specified localization is not found, the default localization will be checked.
If no default localization is found, the first value found will be returned or an empty optional value if the list is empty.Getting a collection of localized messages reporting entry into a region..
The key is the localization tag.List<org.spongepowered.api.world.chunk.WorldChunk>
Getting a list of loaded chunks.
This operation can work overload the server.getMemberData
(UUID uuid) Getting the data of the region member.getMemberData
(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Getting the data of the region member.Getting a collection of the region's members.net.kyori.adventure.text.Component
Getting the region name as kyori component.getNames()
Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
getOwner()
Getting the player-owner of the region, if the owner of the region is a player and he is online.Getting the data of the region ownerGetting the name of the region owner.Getting the UUID of the region owner.Getting a parent region if it is available.getPlainName
(Locale locale) Getting the region name.List<org.spongepowered.api.entity.living.player.server.ServerPlayer>
Getting a list of players in the region.
This operation can work overload the server.Getting the primary parent region.Optional<org.spongepowered.api.world.schematic.Schematic>
getSchematic
(String schematicName, String altAuthor) Create a Schematic from the region.
This operation can work overload the server.int
Total number of members of the region.getTrustType
(UUID uuid) Gaining the trust of a player or entitygetTrustType
(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Getting a player's type of trust.getType()
Getting the region type.Getting the UUID of a region.Optional<org.spongepowered.api.world.server.ServerWorld>
getWorld()
Getting the region world if it is loaded.org.spongepowered.api.ResourceKey
Getting the world key.int
hashCode()
boolean
isAdmin()
Check whether the region is an admin region.boolean
isArena()
Check if the region is an arena.boolean
Check if the region is basic.boolean
isCurrentTrustType
(UUID uuid, TrustTypes level) Checking the type of trust in the region.boolean
isCurrentTrustType
(org.spongepowered.api.entity.living.player.server.ServerPlayer player, TrustTypes level) Checking the type of trust in the region.boolean
isGlobal()
Check if the region is global.boolean
isIntersectsWith
(org.spongepowered.api.ResourceKey worldkey, org.spongepowered.math.vector.Vector3i vector3i) Checking whether the position belongs to the region.boolean
isIntersectsWith
(org.spongepowered.api.world.server.ServerWorld serverWorld, org.spongepowered.math.vector.Vector3i vector3i) Checking whether the position belongs to the region.boolean
isIntersectsWith
(org.spongepowered.math.vector.Vector3i vector3i) Checking whether the position belongs to the region.boolean
Check if the region is subdivision.boolean
Checking whether a entity is a member of a region.boolean
isTrusted
(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Checking whether a player is a member of a region.boolean
putSchematic
(org.spongepowered.api.world.schematic.Schematic schematic, int heigt) Insert Schematic into the region.
This operation can work overload the server.boolean
putSchematic
(org.spongepowered.api.world.schematic.Schematic schematic, org.spongepowered.math.vector.Vector3i vector3i) Insert Schematic into the region.
This operation can work overload the server.boolean
regen
(boolean async, int delay) Territory regeneration in the region.removeAdditionalData
(org.spongepowered.plugin.PluginContainer container, String dataName) Deleting additional data created by another plugin.removeChild
(Region region) Removing a child region.removeFlag
(String flagName) Removing the flag from the region.removeFlag
(String flagName, String source, String target) Removing the flag from the region.removeFlag
(String flagName, FlagValue flagValue) Removing the flag from the region.removeFlag
(Flags flagName) Removing the flag from the region.removeFlag
(Flags flagName, String source, String target) Removing the flag from the region.removeFlag
(Flags flagName, FlagValue flagValue) Removing the flag from the region.removeTempFlag
(String flagName, String source, String target) Removing a temporary flag from a region.removeTempFlag
(Flags flagName, String source, String target) Removing a temporary flag from a region.<T extends AdditionalData>
RegionsetAdditionalData
(org.spongepowered.plugin.PluginContainer container, String dataName, T additionalData) Write additional data created by another plugin.setCuboid
(org.spongepowered.math.vector.Vector3i first, org.spongepowered.math.vector.Vector3i second, SelectorTypes selectorType) Setting new boundaries for the region.Setting new boundaries for the region.setExitMessage
(net.kyori.adventure.text.Component message, Locale locale) Setting region exit message.Setting the value of the flag.Setting the value of the flag.Setting the value of the flag.Setting the value of the flag.Set the values of a set of flags.setJoinMessage
(net.kyori.adventure.text.Component message, Locale locale) Setting region join message.Set region name.setOwner
(org.spongepowered.api.entity.living.player.server.ServerPlayer owner) Make the player the new owner of the region.setOwner
(org.spongepowered.api.profile.GameProfile owner) Make the player the new owner of the region.setParrent
(Region region) Specifying the parent region.boolean
setRegionType
(RegionTypes type) Changing the type of region.setTempFlag
(String flagName, boolean value, String source, String target) Setting the value of the flag.
The flag set via this method will not be saved to disk.setTempFlag
(Flags flagName, boolean value, String source, String target) Setting the value of the flag.
The flag set via this method will not be saved to disk.setTrustType
(UUID uuid, TrustTypes type) Adding a entity to a region.setTrustType
(org.spongepowered.api.entity.living.player.server.ServerPlayer player, TrustTypes type) Adding a player to a region.setTrustType
(org.spongepowered.api.profile.GameProfile player, TrustTypes type) Adding a player to a region.org.spongepowered.api.data.persistence.DataContainer
toString()
void
Removing a player or entity from a region.void
untrust
(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Removing a player from a region.
-
Constructor Details
-
RegionImpl
public RegionImpl()
-
-
Method Details
-
builder
-
getPlainName
Description copied from interface:Region
Getting the region name.- Specified by:
getPlainName
in interfaceRegion
- Parameters:
locale
- - language to be checked
-
getName
Description copied from interface:Region
Getting the region name as kyori component. -
setName
Description copied from interface:Region
Set region name. -
getNames
-
getOwner
Description copied from interface:Region
Getting the player-owner of the region, if the owner of the region is a player and he is online. -
getOwnerUUID
Description copied from interface:Region
Getting the UUID of the region owner.- Specified by:
getOwnerUUID
in interfaceRegion
-
getOwnerName
Description copied from interface:Region
Getting the name of the region owner.- Specified by:
getOwnerName
in interfaceRegion
-
setOwner
Description copied from interface:Region
Make the player the new owner of the region. -
setOwner
Description copied from interface:Region
Make the player the new owner of the region. -
setTrustType
public Region setTrustType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, TrustTypes type) Description copied from interface:Region
Adding a player to a region.- Specified by:
setTrustType
in interfaceRegion
- Parameters:
player
- - addable playertype
- - assignable trust type
-
setTrustType
Description copied from interface:Region
Adding a player to a region.- Specified by:
setTrustType
in interfaceRegion
- Parameters:
player
- - addable playertype
- - assignable trust type
-
setTrustType
Description copied from interface:Region
Adding a entity to a region.- Specified by:
setTrustType
in interfaceRegion
- Parameters:
uuid
- - addable entitytype
- - assignable trust type
-
getOwnerData
Description copied from interface:Region
Getting the data of the region owner- Specified by:
getOwnerData
in interfaceRegion
-
getMembers
Description copied from interface:Region
Getting a collection of the region's members.- Specified by:
getMembers
in interfaceRegion
-
getMemberData
public Optional<MemberData> getMemberData(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Description copied from interface:Region
Getting the data of the region member.- Specified by:
getMemberData
in interfaceRegion
- Parameters:
player
- - checked player.
-
getMemberData
Description copied from interface:Region
Getting the data of the region member.- Specified by:
getMemberData
in interfaceRegion
- Parameters:
uuid
- - checked player or entity.
-
getTotalMembers
public int getTotalMembers()Description copied from interface:Region
Total number of members of the region.- Specified by:
getTotalMembers
in interfaceRegion
-
isCurrentTrustType
public boolean isCurrentTrustType(org.spongepowered.api.entity.living.player.server.ServerPlayer player, TrustTypes level) Description copied from interface:Region
Checking the type of trust in the region.- Specified by:
isCurrentTrustType
in interfaceRegion
- Parameters:
player
- - checked playerlevel
- - checked trust type- Returns:
- true - if the player has the trust type specified in the check
false - if the player or entity does not have the type of trust specified in the check, or region is global, or region is admin
-
isCurrentTrustType
Description copied from interface:Region
Checking the type of trust in the region.- Specified by:
isCurrentTrustType
in interfaceRegion
- Parameters:
uuid
- - player uuidlevel
- - checked trust type- Returns:
- true - if the player or entity has the trust type specified in the check
false - if the player or entity does not have the type of trust specified in the check, or region is global, or region is admin
-
getTrustType
public TrustTypes getTrustType(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Description copied from interface:Region
Getting a player's type of trust.- Specified by:
getTrustType
in interfaceRegion
- Parameters:
player
- - checked player- Returns:
- the type without trust(TrustTypes.WITHOUT_TRUST) if the player is not a member of the region
-
getTrustType
Description copied from interface:Region
Gaining the trust of a player or entity- Specified by:
getTrustType
in interfaceRegion
- Parameters:
uuid
- - checked entity- Returns:
- the type without trust(TrustTypes.WITHOUT_TRUST) if the entity is not a member of the region
-
untrust
public void untrust(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Description copied from interface:Region
Removing a player from a region. -
untrust
Description copied from interface:Region
Removing a player or entity from a region. -
isTrusted
public boolean isTrusted(org.spongepowered.api.entity.living.player.server.ServerPlayer player) Description copied from interface:Region
Checking whether a player is a member of a region. -
isTrusted
Description copied from interface:Region
Checking whether a entity is a member of a region. -
getUniqueId
Description copied from interface:Region
Getting the UUID of a region.- Specified by:
getUniqueId
in interfaceRegion
-
getWorld
Description copied from interface:Region
Getting the region world if it is loaded. -
getWorldKey
public org.spongepowered.api.ResourceKey getWorldKey()Description copied from interface:Region
Getting the world key.- Specified by:
getWorldKey
in interfaceRegion
-
getCuboid
Description copied from interface:Region
Getting the region cuboid. -
getType
Description copied from interface:Region
Getting the region type. -
setRegionType
Description copied from interface:Region
Changing the type of region.
Depending on the specified type, some parameters may change.- Specified by:
setRegionType
in interfaceRegion
- Parameters:
type
- - assignable type
-
isGlobal
public boolean isGlobal()Description copied from interface:Region
Check if the region is global. -
isAdmin
public boolean isAdmin()Description copied from interface:Region
Check whether the region is an admin region. -
isArena
public boolean isArena()Description copied from interface:Region
Check if the region is an arena. -
isBasicClaim
public boolean isBasicClaim()Description copied from interface:Region
Check if the region is basic.- Specified by:
isBasicClaim
in interfaceRegion
-
isSubdivision
public boolean isSubdivision()Description copied from interface:Region
Check if the region is subdivision.- Specified by:
isSubdivision
in interfaceRegion
-
setCuboid
public Region setCuboid(org.spongepowered.math.vector.Vector3i first, org.spongepowered.math.vector.Vector3i second, SelectorTypes selectorType) Description copied from interface:Region
Setting new boundaries for the region. -
setCuboid
Description copied from interface:Region
Setting new boundaries for the region. -
getParrent
Description copied from interface:Region
Getting a parent region if it is available.- Specified by:
getParrent
in interfaceRegion
-
getPrimaryParent
Description copied from interface:Region
Getting the primary parent region.- Specified by:
getPrimaryParent
in interfaceRegion
- Returns:
- the primary parent region if it exists, or the current region if the region has no parent
-
setParrent
Description copied from interface:Region
Specifying the parent region.- Specified by:
setParrent
in interfaceRegion
-
containsChilds
public boolean containsChilds()Description copied from interface:Region
Checking if there are child regions in the region.- Specified by:
containsChilds
in interfaceRegion
-
getChild
Description copied from interface:Region
Searching for a child region.
If no region is found, it will return the current region. -
addChild
Description copied from interface:Region
Adding a child region. -
removeChild
Description copied from interface:Region
Removing a child region.- Specified by:
removeChild
in interfaceRegion
-
getAllChilds
Description copied from interface:Region
Recursive search and making a list of all child regions.- Specified by:
getAllChilds
in interfaceRegion
-
getChilds
Description copied from interface:Region
Getting a list of child regions. -
getFlags
Description copied from interface:Region
Recursively search and list flagValues from the current region to the oldest parent. -
getCustomFlags
Description copied from interface:Region
Recursive search and enumeration of flagValues with parameters from the current region to the oldest parent.- Specified by:
getCustomFlags
in interfaceRegion
-
getFlagValues
Description copied from interface:Region
Getting the values of the flag in the region.
If there is no flag, an attempt will be made to check it in the parent region.- Specified by:
getFlagValues
in interfaceRegion
-
getFlagValues
Description copied from interface:Region
Getting the values of the flag in the region.
If there is no flag, an attempt will be made to check it in the parent region.- Specified by:
getFlagValues
in interfaceRegion
-
containsFlag
Description copied from interface:Region
Checking if a flag is set in the region.- Specified by:
containsFlag
in interfaceRegion
-
containsFlag
Description copied from interface:Region
Checking if a flag is set in the region.- Specified by:
containsFlag
in interfaceRegion
-
getFlagResult
Description copied from interface:Region
Getting the value of the flag in the region.
If there is no flag, an attempt will be made to check it in the parent region.- Specified by:
getFlagResult
in interfaceRegion
-
getFlagResult
Description copied from interface:Region
Getting the value of the flag in the region.
If there is no flag, an attempt will be made to check it in the parent region.- Specified by:
getFlagResult
in interfaceRegion
-
getFlagResultWhithoutParrents
public org.spongepowered.api.util.Tristate getFlagResultWhithoutParrents(Flags flag, String source, String target) Description copied from interface:Region
Getting the value of the flag if there is one.- Specified by:
getFlagResultWhithoutParrents
in interfaceRegion
-
getFlagResultWhithoutParrents
public org.spongepowered.api.util.Tristate getFlagResultWhithoutParrents(String flag, String source, String target) Description copied from interface:Region
Getting the value of the flag if there is one.- Specified by:
getFlagResultWhithoutParrents
in interfaceRegion
-
setFlag
Description copied from interface:Region
Setting the value of the flag. -
setFlag
Description copied from interface:Region
Setting the value of the flag. -
setFlag
Description copied from interface:Region
Setting the value of the flag. -
setTempFlag
Description copied from interface:Region
Setting the value of the flag.
The flag set via this method will not be saved to disk.- Specified by:
setTempFlag
in interfaceRegion
-
setTempFlag
Description copied from interface:Region
Setting the value of the flag.
The flag set via this method will not be saved to disk.- Specified by:
setTempFlag
in interfaceRegion
-
setFlag
Description copied from interface:Region
Setting the value of the flag. -
setFlags
Description copied from interface:Region
Set the values of a set of flags. -
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
removeTempFlag
Description copied from interface:Region
Removing a temporary flag from a region.- Specified by:
removeTempFlag
in interfaceRegion
-
removeTempFlag
Description copied from interface:Region
Removing a temporary flag from a region.- Specified by:
removeTempFlag
in interfaceRegion
-
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
removeFlag
Description copied from interface:Region
Removing the flag from the region.- Specified by:
removeFlag
in interfaceRegion
-
getCreationTime
public long getCreationTime()Description copied from interface:Region
Get the region creation time in unix format.- Specified by:
getCreationTime
in interfaceRegion
-
getJoinMessage
Description copied from interface:Region
Getting region join message.
If the specified localization is not found, the default localization will be checked.
If no default localization is found, the first value found will be returned or an empty optional value if the list is empty.- Specified by:
getJoinMessage
in interfaceRegion
- Parameters:
locale
- - checking locale
-
setJoinMessage
Description copied from interface:Region
Setting region join message.- Specified by:
setJoinMessage
in interfaceRegion
- Parameters:
message
- - setting messagelocale
- - setting locale
-
getJoinMessages
Description copied from interface:Region
Getting a collection of localized messages reporting entry into a region..
The key is the localization tag.- Specified by:
getJoinMessages
in interfaceRegion
-
getExitMessage
Description copied from interface:Region
Getting region exit message.
If the specified localization is not found, the default localization will be checked.
If no default localization is found, the first value found will be returned or an empty optional value if the list is empty.- Specified by:
getExitMessage
in interfaceRegion
- Parameters:
locale
- - checking locale
-
setExitMessage
Description copied from interface:Region
Setting region exit message.- Specified by:
setExitMessage
in interfaceRegion
- Parameters:
message
- - setting messagelocale
- - setting locale
-
getExitMessages
Description copied from interface:Region
Getting a collection of localized messages reporting region exits.
The key is the localization tag.- Specified by:
getExitMessages
in interfaceRegion
-
getAdditionalData
public <T extends AdditionalData> Optional<T> getAdditionalData(org.spongepowered.plugin.PluginContainer container, String dataName, Class<T> clazz) Description copied from interface:Region
Getting additional data that is created by other plugins.
After getting the data, they must be converted to the desired type.
Exemple: YourDataClass yourDataClass = (YourDataClass) additionalData;- Specified by:
getAdditionalData
in interfaceRegion
-
setAdditionalData
public <T extends AdditionalData> Region setAdditionalData(org.spongepowered.plugin.PluginContainer container, String dataName, T additionalData) Description copied from interface:Region
Write additional data created by another plugin.- Specified by:
setAdditionalData
in interfaceRegion
-
removeAdditionalData
public Region removeAdditionalData(org.spongepowered.plugin.PluginContainer container, String dataName) Description copied from interface:Region
Deleting additional data created by another plugin.- Specified by:
removeAdditionalData
in interfaceRegion
-
getAllAdditionalData
Description copied from interface:Region
Getting a copy of the entire collection of the region's supplementary data.- Specified by:
getAllAdditionalData
in interfaceRegion
-
isIntersectsWith
public boolean isIntersectsWith(org.spongepowered.api.world.server.ServerWorld serverWorld, org.spongepowered.math.vector.Vector3i vector3i) Description copied from interface:Region
Checking whether the position belongs to the region.- Specified by:
isIntersectsWith
in interfaceRegion
- Parameters:
serverWorld
- - checkable Worldvector3i
- - checkable position
-
isIntersectsWith
public boolean isIntersectsWith(org.spongepowered.api.ResourceKey worldkey, org.spongepowered.math.vector.Vector3i vector3i) Description copied from interface:Region
Checking whether the position belongs to the region.- Specified by:
isIntersectsWith
in interfaceRegion
- Parameters:
worldkey
- - checkable Worldvector3i
- - checkable position
-
isIntersectsWith
public boolean isIntersectsWith(org.spongepowered.math.vector.Vector3i vector3i) Description copied from interface:Region
Checking whether the position belongs to the region. This method should only be applied to child regions, as it does not perform a world matching check.- Specified by:
isIntersectsWith
in interfaceRegion
- Parameters:
vector3i
- - checkable position
-
getLoadedChunks
Description copied from interface:Region
Getting a list of loaded chunks.
This operation can work overload the server. It is recommended to use in asynchronous mode.- Specified by:
getLoadedChunks
in interfaceRegion
-
getBlocks
Description copied from interface:Region
Getting a list of blocks in the region.
This operation can work overload the server. It is recommended to use in asynchronous mode. -
getBlockEntities
Description copied from interface:Region
Getting a list of block entities in the region.
This operation can work overload the server. It is recommended to use in asynchronous mode.- Specified by:
getBlockEntities
in interfaceRegion
-
getEntities
Description copied from interface:Region
Getting a list of entities in the region.
This list will not contain players.
This operation can work overload the server. It is recommended to use in asynchronous mode.- Specified by:
getEntities
in interfaceRegion
-
getPlayers
Description copied from interface:Region
Getting a list of players in the region.
This operation can work overload the server. It is recommended to use in asynchronous mode.- Specified by:
getPlayers
in interfaceRegion
-
getChunkNumbers
Description copied from interface:Region
Getting a list of the chunk numbers that the region occupies.- Specified by:
getChunkNumbers
in interfaceRegion
-
getSchematic
public Optional<org.spongepowered.api.world.schematic.Schematic> getSchematic(String schematicName, String altAuthor) Description copied from interface:Region
Create a Schematic from the region.
This operation can work overload the server. It is recommended to use in asynchronous mode.- Specified by:
getSchematic
in interfaceRegion
-
putSchematic
public boolean putSchematic(org.spongepowered.api.world.schematic.Schematic schematic, int heigt) Description copied from interface:Region
Insert Schematic into the region.
This operation can work overload the server.- Specified by:
putSchematic
in interfaceRegion
heigt
- - the height at which the insertion will be made
-
putSchematic
public boolean putSchematic(org.spongepowered.api.world.schematic.Schematic schematic, org.spongepowered.math.vector.Vector3i vector3i) Description copied from interface:Region
Insert Schematic into the region.
This operation can work overload the server.- Specified by:
putSchematic
in interfaceRegion
vector3i
- - central position
-
regen
public boolean regen(boolean async, int delay) Description copied from interface:Region
Territory regeneration in the region. -
equals
-
equalsOwners
Description copied from interface:Region
Checking for matching region owners.- Specified by:
equalsOwners
in interfaceRegion
-
copy
Description copied from interface:Region
Create a copy of the current region. -
hashCode
public int hashCode() -
toString
-
contentVersion
public int contentVersion()- Specified by:
contentVersion
in interfaceorg.spongepowered.api.data.persistence.DataSerializable
-
toContainer
public org.spongepowered.api.data.persistence.DataContainer toContainer()- Specified by:
toContainer
in interfaceorg.spongepowered.api.data.persistence.DataSerializable
-