Contents
Record Class Damage.CameraEffect
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.damage.Damage.CameraEffect
- Record Components:
cameraEffectIndex- The index of the camera effect to apply
- Enclosing class:
Damage
Camera Effect
Holds the camera effects to be applied after processing the affiliated damage entry
-
Constructor Summary
ConstructorsConstructorDescriptionCameraEffect(int cameraEffectIndex) Default Constructor for aDamage.CameraEffectinstance -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecameraEffectIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CameraEffect
public CameraEffect(int cameraEffectIndex) Default Constructor for aDamage.CameraEffectinstance- Parameters:
cameraEffectIndex- The index of the camera effect
-
-
Method Details
-
getEffectIndex
public int getEffectIndex()- Returns:
- the index of the camera effect to apply
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
cameraEffectIndex
public int cameraEffectIndex()Returns the value of thecameraEffectIndexrecord component.- Returns:
- the value of the
cameraEffectIndexrecord component
-