Record Class RepeatedNarrator.Params
java.lang.Object
java.lang.Record
net.minecraft.realms.RepeatedNarrator.Params
- Enclosing class:
RepeatedNarrator
private static record RepeatedNarrator.Params(Component narration, RateLimiter rateLimiter)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentThe field for thenarrationrecord component.private final RateLimiterThe field for therateLimiterrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateParams(Component narration, RateLimiter rateLimiter) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenarrationrecord component.Returns the value of therateLimiterrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
narration
The field for thenarrationrecord component. -
rateLimiter
The field for therateLimiterrecord component.
-
-
Constructor Details
-
Params
Creates an instance of aParamsrecord class.- Parameters:
narration- the value for thenarrationrecord componentrateLimiter- the value for therateLimiterrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
narration
Returns the value of thenarrationrecord component.- Returns:
- the value of the
narrationrecord component
-
rateLimiter
Returns the value of therateLimiterrecord component.- Returns:
- the value of the
rateLimiterrecord component
-