Index
All Classes and Interfaces|All Packages
A
- allRegions() - Method in interface com.cotani.region.api.RegionModule
-
Returns an unmodifiable snapshot of all registered regions.
B
- BLOCK_BREAK - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Block breaking allowed.
- BLOCK_PLACE - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Block placing allowed.
- bounds(int, int, int, int, int, int) - Method in class com.cotani.region.api.Region3D.Builder
- bounds(Location, Location) - Method in class com.cotani.region.api.Region3D.Builder
- build() - Method in class com.cotani.region.api.Region3D.Builder
- builder(String, UUID) - Static method in record class com.cotani.region.api.Region3D
-
Creates a new fluent
Region3D.Builder. - Builder(String, UUID) - Constructor for class com.cotani.region.api.Region3D.Builder
C
- close() - Method in interface com.cotani.region.api.RegionModule
- com.cotani.region - package com.cotani.region
- com.cotani.region.api - package com.cotani.region.api
- contains(int, int, int) - Method in record class com.cotani.region.api.Region3D
-
Checks if block coordinates are inside this 3D region bounding box.
- contains(Location) - Method in record class com.cotani.region.api.Region3D
-
Checks if a Bukkit location is inside this 3D region.
- CotaniRegions - Class in com.cotani.region
-
Factory for creating and configuring the Cotani 3D Region and protection module.
- create(Plugin, PaperTaskScheduler) - Static method in class com.cotani.region.CotaniRegions
-
Creates a new
RegionModuleinstance.
D
- displayName() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
displayNamerecord component.
E
- ENTRY - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Player entry into region allowed (if denied, players are pushed back).
- equals(Object) - Method in record class com.cotani.region.api.Region3D
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.region.api.RegionEnterEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Indicates whether some other object is "equal to" this one.
- EXPLOSIONS - Enum constant in enum class com.cotani.region.api.RegionFlag
-
TNT, creeper, and other entity explosions allowed.
F
- farewell(String) - Method in class com.cotani.region.api.Region3D.Builder
- farewell(Component) - Method in class com.cotani.region.api.Region3D.Builder
- farewellMessage() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
farewellMessagerecord component. - findRegion(String) - Method in interface com.cotani.region.api.RegionModule
-
Finds a region by ID.
- FIRE_SPREAD - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Fire spread and burning allowed.
- flag(RegionFlag, boolean) - Method in class com.cotani.region.api.Region3D.Builder
- flags() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
flagsrecord component. - from() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns the value of the
fromrecord component. - from() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns the value of the
fromrecord component.
G
- getFlag(RegionFlag) - Method in record class com.cotani.region.api.Region3D
-
Queries a specific protection flag on this region.
- greeting(String) - Method in class com.cotani.region.api.Region3D.Builder
- greeting(Component) - Method in class com.cotani.region.api.Region3D.Builder
- greetingMessage() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
greetingMessagerecord component.
H
- hashCode() - Method in record class com.cotani.region.api.Region3D
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns a hash code value for this object.
- highestPriorityRegionAt(Location) - Method in interface com.cotani.region.api.RegionModule
-
Returns the highest priority region containing the location, if any.
I
- id() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
idrecord component. - isFlagAllowed(Location, RegionFlag, boolean) - Method in interface com.cotani.region.api.RegionModule
-
Evaluates whether a flag is allowed at the given location based on region priority.
- ITEM_DROP - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Dropping items on the ground allowed.
- ITEM_PICKUP - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Picking up items from the ground allowed.
M
- maxX() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
maxXrecord component. - maxY() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
maxYrecord component. - maxZ() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
maxZrecord component. - minX() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
minXrecord component. - minY() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
minYrecord component. - minZ() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
minZrecord component. - MOB_SPAWN - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Hostile and natural monster spawning allowed.
N
- name(String) - Method in class com.cotani.region.api.Region3D.Builder
- name(Component) - Method in class com.cotani.region.api.Region3D.Builder
P
- player() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns the value of the
playerrecord component. - player() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns the value of the
playerrecord component. - priority() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
priorityrecord component. - priority(int) - Method in class com.cotani.region.api.Region3D.Builder
- PVP - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Player versus player combat allowed.
R
- region() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns the value of the
regionrecord component. - region() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns the value of the
regionrecord component. - Region3D - Record Class in com.cotani.region.api
-
Immutable 3D spatial region with bounding box coordinates, priority, and protection flags.
- Region3D(String, Component, UUID, int, int, int, int, int, int, int, Map, Component, Component) - Constructor for record class com.cotani.region.api.Region3D
-
Creates an instance of a
Region3Drecord class. - Region3D.Builder - Class in com.cotani.region.api
-
Fluent builder for
Region3D. - RegionEnterEvent - Record Class in com.cotani.region.api
-
Event fired when a player enters a 3D region.
- RegionEnterEvent(Player, Region3D, Location, Location) - Constructor for record class com.cotani.region.api.RegionEnterEvent
-
Creates an instance of a
RegionEnterEventrecord class. - RegionFlag - Enum Class in com.cotani.region.api
-
Protection and gameplay flags evaluated within 3D regions.
- RegionLeaveEvent - Record Class in com.cotani.region.api
-
Event fired when a player leaves a 3D region.
- RegionLeaveEvent(Player, Region3D, Location, Location) - Constructor for record class com.cotani.region.api.RegionLeaveEvent
-
Creates an instance of a
RegionLeaveEventrecord class. - RegionModule - Interface in com.cotani.region.api
-
Service contract for managing 3D regions, spatial queries, and protection flags.
- regionsAt(Location) - Method in interface com.cotani.region.api.RegionModule
-
Finds all regions containing the specified location, ordered from highest priority to lowest.
- registerRegion(Region3D) - Method in interface com.cotani.region.api.RegionModule
-
Registers a 3D region.
T
- to() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns the value of the
torecord component. - to() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns the value of the
torecord component. - toString() - Method in record class com.cotani.region.api.Region3D
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.region.api.RegionEnterEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.region.api.RegionLeaveEvent
-
Returns a string representation of this record class.
U
- unregisterRegion(String) - Method in interface com.cotani.region.api.RegionModule
-
Unregisters a 3D region by its unique identifier.
- USE_CONTAINERS - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Chest and container opening allowed.
- USE_DOORS - Enum constant in enum class com.cotani.region.api.RegionFlag
-
Door, trapdoor, and gate usage allowed.
V
- valueOf(String) - Static method in enum class com.cotani.region.api.RegionFlag
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.region.api.RegionFlag
-
Returns an array containing the constants of this enum class, in the order they are declared.
- volume() - Method in record class com.cotani.region.api.Region3D
-
Calculates the total block volume of this region.
W
- worldId() - Method in record class com.cotani.region.api.Region3D
-
Returns the value of the
worldIdrecord component.
All Classes and Interfaces|All Packages