Record Class Damage.CameraEffect
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.damage.Damage.CameraEffect
- Enclosing class:
Damage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecameraEffectIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCameraEffect(int cameraEffectIndex) Creates an instance of aCameraEffectrecord class. -
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.
-
Field Details
-
cameraEffectIndex
private final int cameraEffectIndexThe field for thecameraEffectIndexrecord component.
-
-
Constructor Details
-
CameraEffect
public CameraEffect(int cameraEffectIndex) Creates an instance of aCameraEffectrecord class.- Parameters:
cameraEffectIndex- the value for thecameraEffectIndexrecord component
-
-
Method Details
-
getEffectIndex
public int getEffectIndex() -
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. All components in this record class are compared with '=='. -
cameraEffectIndex
public int cameraEffectIndex()Returns the value of thecameraEffectIndexrecord component.- Returns:
- the value of the
cameraEffectIndexrecord component
-