Package org.geysermc.geyser.impl.camera
Record Class GeyserCameraPosition
java.lang.Object
java.lang.Record
org.geysermc.geyser.impl.camera.GeyserCameraPosition
- All Implemented Interfaces:
org.geysermc.geyser.api.bedrock.camera.CameraPosition
public record GeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition)
extends Record
implements org.geysermc.geyser.api.bedrock.camera.CameraPosition
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition) Creates an instance of aGeyserCameraPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.geysermc.geyser.api.bedrock.camera.CameraFadeReturns the value of thecameraFaderecord component.floatReturns the value of theeaseSecondsrecord component.org.geysermc.geyser.api.bedrock.camera.CameraEaseTypeeaseType()Returns the value of theeaseTyperecord component.final booleanIndicates whether some other object is "equal to" this one.org.cloudburstmc.math.vector.Vector3fReturns the value of thefacingPositionrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theplayerPositionForAudiorecord component.org.cloudburstmc.math.vector.Vector3fposition()Returns the value of thepositionrecord component.booleanReturns the value of therenderPlayerEffectsrecord component.@org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) intReturns the value of therotationXrecord component.intReturns the value of therotationYrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserCameraPosition
public GeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition) Creates an instance of aGeyserCameraPositionrecord class.- Parameters:
cameraFade- the value for thecameraFaderecord componentrenderPlayerEffects- the value for therenderPlayerEffectsrecord componentplayerPositionForAudio- the value for theplayerPositionForAudiorecord componenteaseType- the value for theeaseTyperecord componenteaseSeconds- the value for theeaseSecondsrecord componentposition- the value for thepositionrecord componentrotationX- the value for therotationXrecord componentrotationY- the value for therotationYrecord componentfacingPosition- the value for thefacingPositionrecord 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 '=='. -
cameraFade
public org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade()Returns the value of thecameraFaderecord component.- Specified by:
cameraFadein interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
cameraFaderecord component
-
renderPlayerEffects
public boolean renderPlayerEffects()Returns the value of therenderPlayerEffectsrecord component.- Specified by:
renderPlayerEffectsin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
renderPlayerEffectsrecord component
-
playerPositionForAudio
public boolean playerPositionForAudio()Returns the value of theplayerPositionForAudiorecord component.- Specified by:
playerPositionForAudioin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
playerPositionForAudiorecord component
-
easeType
public org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType()Returns the value of theeaseTyperecord component.- Specified by:
easeTypein interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
easeTyperecord component
-
easeSeconds
public float easeSeconds()Returns the value of theeaseSecondsrecord component.- Specified by:
easeSecondsin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
easeSecondsrecord component
-
position
public org.cloudburstmc.math.vector.Vector3f position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
positionrecord component
-
rotationX
public @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX()Returns the value of therotationXrecord component.- Specified by:
rotationXin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
rotationXrecord component
-
rotationY
public int rotationY()Returns the value of therotationYrecord component.- Specified by:
rotationYin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
rotationYrecord component
-
facingPosition
public org.cloudburstmc.math.vector.Vector3f facingPosition()Returns the value of thefacingPositionrecord component.- Specified by:
facingPositionin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraPosition- Returns:
- the value of the
facingPositionrecord component
-