Package ch.njol.skript.hooks.regions
Class GriefPreventionHook.GriefPreventionRegion
java.lang.Object
ch.njol.skript.hooks.regions.classes.Region
ch.njol.skript.hooks.regions.GriefPreventionHook.GriefPreventionRegion
- All Implemented Interfaces:
YggdrasilSerializable,YggdrasilSerializable.YggdrasilExtendedSerializable
- Enclosing class:
- GriefPreventionHook
@YggdrasilID("GriefPreventionRegion")
public final class GriefPreventionHook.GriefPreventionRegion
extends Region
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.yggdrasil.YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(org.bukkit.Location l)voiddeserialize(Fields fields)Deserialises this object.booleanIterator<org.bukkit.block.Block>Collection<org.bukkit.OfflinePlayer>Collection<org.bukkit.OfflinePlayer>inthashCode()booleanisMember(org.bukkit.OfflinePlayer p)booleanisOwner(org.bukkit.OfflinePlayer p)Serialises this object.toString()
-
Constructor Details
-
GriefPreventionRegion
public GriefPreventionRegion(me.ryanhamshire.GriefPrevention.Claim c)
-
-
Method Details
-
contains
public boolean contains(org.bukkit.Location l) -
isMember
public boolean isMember(org.bukkit.OfflinePlayer p) -
getMembers
- Specified by:
getMembersin classRegion
-
isOwner
public boolean isOwner(org.bukkit.OfflinePlayer p) -
getOwners
-
getBlocks
-
toString
-
serialize
Description copied from interface:YggdrasilSerializable.YggdrasilExtendedSerializableSerialises 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
-
deserialize
Description copied from interface:YggdrasilSerializable.YggdrasilExtendedSerializableDeserialises 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.
-
getPlugin
-
equals
-
hashCode
public int hashCode()
-