Package ch.njol.skript.hooks.regions
Class ResidenceHook.ResidenceRegion
java.lang.Object
ch.njol.skript.hooks.regions.classes.Region
ch.njol.skript.hooks.regions.ResidenceHook.ResidenceRegion
- All Implemented Interfaces:
YggdrasilSerializable
,YggdrasilSerializable.YggdrasilExtendedSerializable
- Enclosing class:
- ResidenceHook
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.yggdrasil.YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable
-
Constructor Summary
ConstructorDescriptionResidenceRegion(org.bukkit.World w, com.bekvon.bukkit.residence.protection.ClaimedResidence r)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains(org.bukkit.Location l)
void
deserialize(Fields fields)
Deserialises this object.boolean
Iterator<org.bukkit.block.Block>
Collection<org.bukkit.OfflinePlayer>
Collection<org.bukkit.OfflinePlayer>
int
hashCode()
boolean
isMember(org.bukkit.OfflinePlayer p)
boolean
isOwner(org.bukkit.OfflinePlayer p)
Serialises this object.toString()
-
Constructor Details
-
ResidenceRegion
public ResidenceRegion(org.bukkit.World w, com.bekvon.bukkit.residence.protection.ClaimedResidence r)
-
-
Method Details
-
serialize
Description copied from interface:YggdrasilSerializable.YggdrasilExtendedSerializable
Serialises this object. Only fields contained in the returned Fields object will be written to stream.You can use return new
Fields
(this); to emulate the default behaviour.- Returns:
- A Fields object containing all fields that should be written to stream
- Throws:
NotSerializableException
- If this object or one of its fields is not serialisable
-
deserialize
Description copied from interface:YggdrasilSerializable.YggdrasilExtendedSerializable
Deserialises this object. No fields have been set when this method is called, use fields.setFields
(this, yggdrasil) to set all compatible non-transient and non-static fields (and call incompatible/missing field handlers if applicable – this implies that errors will be thrown if the fields object is invalid).You can use fields.
setFields
(this); to emulate the default behaviour.- Parameters:
fields
- A Fields object containing all fields read from stream- Throws:
StreamCorruptedException
- If the Fields object is invalid, i.e. was not written byYggdrasilSerializable.YggdrasilExtendedSerializable.serialize()
or Yggrdasil's default serialisation.NotSerializableException
-
contains
public boolean contains(org.bukkit.Location l) -
isMember
public boolean isMember(org.bukkit.OfflinePlayer p) -
getMembers
- Specified by:
getMembers
in classRegion
-
isOwner
public boolean isOwner(org.bukkit.OfflinePlayer p) -
getOwners
-
getBlocks
-
toString
-
getPlugin
-
equals
-
hashCode
public int hashCode()
-