Package com.ranull.graves.data
Class HologramData
java.lang.Object
com.ranull.graves.data.EntityData
com.ranull.graves.data.HologramData
- All Implemented Interfaces:
Serializable
Represents data for a hologram entity associated with a grave, including its line number.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ranull.graves.data.EntityData
EntityData.Type -
Constructor Summary
ConstructorsConstructorDescriptionHologramData(org.bukkit.Location location, UUID uuidEntity, UUID uuidGrave, int line) Constructs a new HologramData instance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the chunk X coordinate where this hologram resides.intGets the chunk Z coordinate where this hologram resides.intgetLine()Gets the line number of the hologram.org.bukkit.ChunkReturns the chunk if loaded, otherwise null.booleanReturns true if the hologram's chunk is currently loaded.Methods inherited from class com.ranull.graves.data.EntityData
getLocation, getType, getUUIDEntity, getUUIDGrave, isForEntity, isForGrave, isSameWorld, isWithinDistanceSquared
-
Constructor Details
-
HologramData
Constructs a new HologramData instance.- Parameters:
location- The location of the hologram.uuidEntity- The UUID of the hologram entity.uuidGrave- The UUID of the associated grave.line- The line number of the hologram.
-
-
Method Details
-
getLine
public int getLine()Gets the line number of the hologram.- Returns:
- The line number of the hologram.
-
getChunkX
public int getChunkX()Gets the chunk X coordinate where this hologram resides.- Returns:
- chunk X
-
getChunkZ
public int getChunkZ()Gets the chunk Z coordinate where this hologram resides.- Returns:
- chunk Z
-
isChunkLoaded
public boolean isChunkLoaded()Returns true if the hologram's chunk is currently loaded. This does not force-load the chunk.- Returns:
- true if loaded, otherwise false
-
getLoadedChunkOrNull
public org.bukkit.Chunk getLoadedChunkOrNull()Returns the chunk if loaded, otherwise null. Does not load the chunk.- Returns:
- loaded chunk or null
-