Record Class VibrationSelector.VibrationEvent
java.lang.Object
java.lang.Record
net.minecraft.world.level.gameevent.vibrations.VibrationSelector.VibrationEvent
- Enclosing class:
VibrationSelector
private static record VibrationSelector.VibrationEvent(VibrationInfo event, long tick)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VibrationInfoThe field for theeventrecord component.private final longThe field for thetickrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVibrationEvent(VibrationInfo event, long tick) Creates an instance of aVibrationEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.longtick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
event
The field for theeventrecord component. -
tick
private final long tickThe field for thetickrecord component.
-
-
Constructor Details
-
VibrationEvent
Creates an instance of aVibrationEventrecord class.- Parameters:
event- the value for theeventrecord componenttick- the value for thetickrecord 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. -
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
tick
public long tick()Returns the value of thetickrecord component.- Returns:
- the value of the
tickrecord component
-