Contents
Record Class VolumeEntry.EffectEntityKey
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.triggervolumes.manager.VolumeEntry.EffectEntityKey
- Enclosing class:
VolumeEntry
public static record VolumeEntry.EffectEntityKey(@Nonnull VolumeEntry.EffectBucket bucket, int effectIndex, @Nonnull UUID entityId)
extends Record
Key for per-effect, per-entity interval state and delayed-effect deduping.
-
Constructor Summary
ConstructorsConstructorDescriptionEffectEntityKey(VolumeEntry.EffectBucket bucket, int effectIndex, UUID entityId) Creates an instance of aEffectEntityKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.intReturns the value of theeffectIndexrecord component.entityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EffectEntityKey
public EffectEntityKey(@Nonnull VolumeEntry.EffectBucket bucket, int effectIndex, @Nonnull UUID entityId) Creates an instance of aEffectEntityKeyrecord class.- Parameters:
bucket- the value for thebucketrecord componenteffectIndex- the value for theeffectIndexrecord componententityId- the value for theentityIdrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
effectIndex
public int effectIndex()Returns the value of theeffectIndexrecord component.- Returns:
- the value of the
effectIndexrecord component
-
entityId
Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-