Package org.geysermc.geyser.impl.camera
Record Class CameraDefinitions.CameraDefinition
java.lang.Object
java.lang.Record
org.geysermc.geyser.impl.camera.CameraDefinitions.CameraDefinition
- All Implemented Interfaces:
org.cloudburstmc.protocol.common.Definition,org.cloudburstmc.protocol.common.NamedDefinition
- Enclosing class:
CameraDefinitions
-
Constructor Summary
ConstructorsConstructorDescriptionCameraDefinition(String identifier, int runtimeId) Creates an instance of aCameraDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.intReturns the value of theruntimeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CameraDefinition
Creates an instance of aCameraDefinitionrecord class.- Parameters:
identifier- the value for theidentifierrecord componentruntimeId- the value for theruntimeIdrecord component
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin interfaceorg.cloudburstmc.protocol.common.NamedDefinition
-
getRuntimeId
public int getRuntimeId()- Specified by:
getRuntimeIdin interfaceorg.cloudburstmc.protocol.common.Definition
-
of
-
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 '=='. -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
runtimeId
public int runtimeId()Returns the value of theruntimeIdrecord component.- Returns:
- the value of the
runtimeIdrecord component
-