Class WorldguardRegion
java.lang.Object
com.guflimc.brick.regions.worldguard.model.WorldguardRegion
- All Implemented Interfaces:
Region
,Region.Attributeable
,Region.AttributeModifiable
,Region.Keyed
,Region.Named
,Region.PropertyModifiable
,Region.Shaped
- Direct Known Subclasses:
WorldguardGlobalRegion
public class WorldguardRegion
extends Object
implements Region, Region.Keyed, Region.Named, Region.Shaped, Region.PropertyModifiable, Region.Attributeable, Region.AttributeModifiable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.guflimc.brick.regions.api.domain.Region
Region.Attributeable, Region.AttributeModifiable, Region.Keyed, Region.Named, Region.PropertyModifiable, Region.Shaped, Region.World
-
Constructor Summary
ConstructorDescriptionWorldguardRegion
(@NotNull WorldguardRegionManager manager, @NotNull UUID worldId, @NotNull com.sk89q.worldguard.protection.regions.ProtectedRegion region) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
attribute
(com.guflimc.brick.orm.api.attributes.AttributeKey<T> key) boolean
contains
(@NotNull com.guflimc.brick.math.common.geometry.pos3.Point3 point) id()
name()
int
priority()
<T> void
removeAttribute
(@NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key) <T> void
setAttribute
(@NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key, T value) void
setPriority
(int priority) com.guflimc.brick.math.common.geometry.shape3d.Shape3
shape()
worldId()
-
Constructor Details
-
WorldguardRegion
public WorldguardRegion(@NotNull @NotNull WorldguardRegionManager manager, @NotNull @NotNull UUID worldId, @NotNull @NotNull com.sk89q.worldguard.protection.regions.ProtectedRegion region)
-
-
Method Details
-
id
- Specified by:
id
in interfaceRegion.Keyed
-
worldId
-
name
- Specified by:
name
in interfaceRegion.Named
-
priority
public int priority() -
setPriority
public void setPriority(int priority) - Specified by:
setPriority
in interfaceRegion.PropertyModifiable
-
shape
public com.guflimc.brick.math.common.geometry.shape3d.Shape3 shape()- Specified by:
shape
in interfaceRegion.Shaped
-
contains
public boolean contains(@NotNull @NotNull com.guflimc.brick.math.common.geometry.pos3.Point3 point) - Specified by:
contains
in interfaceRegion
- Specified by:
contains
in interfaceRegion.Shaped
-
attribute
- Specified by:
attribute
in interfaceRegion.Attributeable
-
setAttribute
public <T> void setAttribute(@NotNull @NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key, @NotNull T value) - Specified by:
setAttribute
in interfaceRegion.AttributeModifiable
-
removeAttribute
public <T> void removeAttribute(@NotNull @NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key) - Specified by:
removeAttribute
in interfaceRegion.AttributeModifiable
-