Record Class DebugSubscription.Event<T>
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.DebugSubscription.Event<T>
- Enclosing interface:
DebugSubscription<T>
public static record DebugSubscription.Event<T>(DebugSubscription<T> subscription, T value)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEvent(DebugSubscription<T> subscription, T value) Creates an instance of aEventrecord 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 thesubscriptionrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
Event
Creates an instance of aEventrecord class.- Parameters:
subscription- the value for thesubscriptionrecord componentvalue- the value for thevaluerecord 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). -
subscription
Returns the value of thesubscriptionrecord component.- Returns:
- the value of the
subscriptionrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-