Package me.despical.commons.util
Class Area
java.lang.Object
me.despical.commons.util.Area
- Author:
- Despical
Created at 28.07.2021
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bukkit.Locationprotected final intprotected final intprotected final intprotected final intprotected final intprotected final intprotected final org.bukkit.Locationprotected final UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int x, int y, int z) booleancontains(org.bukkit.entity.Player player) booleancontains(org.bukkit.Location location) protected final voidensureSameWorld(org.bukkit.Location first, org.bukkit.Location second) org.bukkit.LocationgetFirst()org.bukkit.Locationorg.bukkit.WorldgetWorld()
-
Field Details
-
first
protected final org.bukkit.Location first -
second
protected final org.bukkit.Location second -
worldUUID
-
minX
protected final int minX -
minY
protected final int minY -
minZ
protected final int minZ -
maxX
protected final int maxX -
maxY
protected final int maxY -
maxZ
protected final int maxZ
-
-
Constructor Details
-
Area
public Area(org.bukkit.Location first, org.bukkit.Location second) -
Area
-
-
Method Details
-
getFirst
public org.bukkit.Location getFirst() -
getSecond
public org.bukkit.Location getSecond() -
getWorld
public org.bukkit.World getWorld() -
contains
public boolean contains(int x, int y, int z) -
contains
public boolean contains(org.bukkit.Location location) -
contains
public boolean contains(org.bukkit.entity.Player player) -
ensureSameWorld
protected final void ensureSameWorld(org.bukkit.Location first, org.bukkit.Location second)
-