Package org.geysermc.geyser.impl.camera
Record Class GeyserCameraFade
java.lang.Object
java.lang.Record
org.geysermc.geyser.impl.camera.GeyserCameraFade
- All Implemented Interfaces:
org.geysermc.geyser.api.bedrock.camera.CameraFade
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserCameraFade(Color color, float fadeInSeconds, float fadeHoldSeconds, float fadeOutSeconds) Creates an instance of aGeyserCameraFaderecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefadeHoldSecondsrecord component.floatReturns the value of thefadeInSecondsrecord component.floatReturns the value of thefadeOutSecondsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserCameraFade
public GeyserCameraFade(Color color, float fadeInSeconds, float fadeHoldSeconds, float fadeOutSeconds) Creates an instance of aGeyserCameraFaderecord class.- Parameters:
color- the value for thecolorrecord componentfadeInSeconds- the value for thefadeInSecondsrecord componentfadeHoldSeconds- the value for thefadeHoldSecondsrecord componentfadeOutSeconds- the value for thefadeOutSecondsrecord 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 '=='. -
color
Returns the value of thecolorrecord component.- Specified by:
colorin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraFade- Returns:
- the value of the
colorrecord component
-
fadeInSeconds
public float fadeInSeconds()Returns the value of thefadeInSecondsrecord component.- Specified by:
fadeInSecondsin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraFade- Returns:
- the value of the
fadeInSecondsrecord component
-
fadeHoldSeconds
public float fadeHoldSeconds()Returns the value of thefadeHoldSecondsrecord component.- Specified by:
fadeHoldSecondsin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraFade- Returns:
- the value of the
fadeHoldSecondsrecord component
-
fadeOutSeconds
public float fadeOutSeconds()Returns the value of thefadeOutSecondsrecord component.- Specified by:
fadeOutSecondsin interfaceorg.geysermc.geyser.api.bedrock.camera.CameraFade- Returns:
- the value of the
fadeOutSecondsrecord component
-