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
ConstructorsConstructorDescriptionWorldguardRegion(@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) booleancontains(@NotNull com.guflimc.brick.math.common.geometry.pos3.Point3 point) id()name()intpriority()<T> voidremoveAttribute(@NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key) <T> voidsetAttribute(@NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key, T value) voidsetPriority(int priority) com.guflimc.brick.math.common.geometry.shape3d.Shape3shape()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:
idin interfaceRegion.Keyed
-
worldId
-
name
- Specified by:
namein interfaceRegion.Named
-
priority
public int priority() -
setPriority
public void setPriority(int priority) - Specified by:
setPriorityin interfaceRegion.PropertyModifiable
-
shape
public com.guflimc.brick.math.common.geometry.shape3d.Shape3 shape()- Specified by:
shapein interfaceRegion.Shaped
-
contains
public boolean contains(@NotNull @NotNull com.guflimc.brick.math.common.geometry.pos3.Point3 point) - Specified by:
containsin interfaceRegion- Specified by:
containsin interfaceRegion.Shaped
-
attribute
- Specified by:
attributein interfaceRegion.Attributeable
-
setAttribute
public <T> void setAttribute(@NotNull @NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key, @NotNull T value) - Specified by:
setAttributein interfaceRegion.AttributeModifiable
-
removeAttribute
public <T> void removeAttribute(@NotNull @NotNull com.guflimc.brick.orm.api.attributes.AttributeKey<T> key) - Specified by:
removeAttributein interfaceRegion.AttributeModifiable
-