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
-
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
-
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:
getMembers
in classRegion
-
isOwner
public boolean isOwner(org.bukkit.OfflinePlayer p) -
getOwners
-
getBlocks
-
toString
-
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
-
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.
-
getPlugin
-
equals
-
hashCode
public int hashCode()
-