Record Class DragonEndpointChunk
java.lang.Object
java.lang.Record
dev.itsharshxd.zentrix.api.dragon.DragonEndpointChunk
@Deprecated(since="1.7.0",
forRemoval=true)
public record DragonEndpointChunk(@NotNull UUID worldId, @NotNull String worldName, int x, int z, boolean loaded, boolean pluginTicketed)
extends Record
Deprecated, for removal: This API element is subject to removal in a future version.
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) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aDragonEndpointChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.booleanloaded()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theloadedrecord component.booleanDeprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepluginTicketedrecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.@NotNull UUIDworldId()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theworldIdrecord component.@NotNull StringDeprecated, for removal: This API element is subject to removal in a future version.Returns the value of theworldNamerecord component.intx()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thexrecord component.intz()Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theworldIdrecord component.- Returns:
- the value of the
worldIdrecord component
-
worldName
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-
x
public int x()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
loaded
public boolean loaded()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theloadedrecord component.- Returns:
- the value of the
loadedrecord component
-
pluginTicketed
public boolean pluginTicketed()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thepluginTicketedrecord component.- Returns:
- the value of the
pluginTicketedrecord component
-
pluginTicketed()always reports false.