Record Class DragonEndpointChunk
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.dragon.DragonEndpointChunk
public record DragonEndpointChunk(@NotNull UUID worldId, @NotNull String worldName, int x, int z, boolean loaded, boolean pluginTicketed)
extends Record
Chunk containing one route endpoint and its current load/ticket status.
-
Constructor Summary
ConstructorsConstructorDescriptionDragonEndpointChunk(@NotNull UUID worldId, @NotNull String worldName, int x, int z, boolean loaded, boolean pluginTicketed) Creates an instance of aDragonEndpointChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanloaded()Returns the value of theloadedrecord component.booleanReturns the value of thepluginTicketedrecord component.final StringtoString()Returns a string representation of this record class.@NotNull UUIDworldId()Returns the value of theworldIdrecord component.@NotNull StringReturns the value of theworldNamerecord component.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
DragonEndpointChunk
public DragonEndpointChunk(@NotNull @NotNull UUID worldId, @NotNull @NotNull String worldName, int x, int z, boolean loaded, boolean pluginTicketed) Creates an instance of aDragonEndpointChunkrecord class.- Parameters:
worldId- the value for theworldIdrecord componentworldName- the value for theworldNamerecord componentx- the value for thexrecord componentz- the value for thezrecord componentloaded- the value for theloadedrecord componentpluginTicketed- the value for thepluginTicketedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
worldId
Returns the value of theworldIdrecord component.- Returns:
- the value of the
worldIdrecord component
-
worldName
Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
loaded
public boolean loaded()Returns the value of theloadedrecord component.- Returns:
- the value of the
loadedrecord component
-
pluginTicketed
public boolean pluginTicketed()Returns the value of thepluginTicketedrecord component.- Returns:
- the value of the
pluginTicketedrecord component
-