Record Class OutgoingRpcMethod.ParmeterlessNotification
java.lang.Object
java.lang.Record
net.minecraft.server.jsonrpc.OutgoingRpcMethod.ParmeterlessNotification
- All Implemented Interfaces:
OutgoingRpcMethod<Void,Void>
- Enclosing interface:
OutgoingRpcMethod<Params,Result>
public static record OutgoingRpcMethod.ParmeterlessNotification(MethodInfo<Void,Void> info, OutgoingRpcMethod.Attributes attributes)
extends Record
implements OutgoingRpcMethod<Void,Void>
-
Nested Class Summary
Nested classes/interfaces inherited from interface OutgoingRpcMethod
OutgoingRpcMethod.Attributes, OutgoingRpcMethod.Factory<Params,Result>, OutgoingRpcMethod.Method<Params, Result>, OutgoingRpcMethod.Notification<Params>, OutgoingRpcMethod.OutgoingRpcMethodBuilder<Params, Result>, OutgoingRpcMethod.ParameterlessMethod<Result>, OutgoingRpcMethod.ParmeterlessNotification -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OutgoingRpcMethod.AttributesThe field for theattributesrecord component.private final MethodInfo<Void, Void> The field for theinforecord component.Fields inherited from interface OutgoingRpcMethod
NOTIFICATION_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionParmeterlessNotification(MethodInfo<Void, Void> info, OutgoingRpcMethod.Attributes attributes) Creates an instance of aParmeterlessNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface OutgoingRpcMethod
decodeResult, encodeParams
-
Field Details
-
info
The field for theinforecord component. -
attributes
The field for theattributesrecord component.
-
-
Constructor Details
-
ParmeterlessNotification
public ParmeterlessNotification(MethodInfo<Void, Void> info, OutgoingRpcMethod.Attributes attributes) Creates an instance of aParmeterlessNotificationrecord class.- Parameters:
info- the value for theinforecord componentattributes- the value for theattributesrecord 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). -
info
Returns the value of theinforecord component.- Specified by:
infoin interfaceOutgoingRpcMethod<Void,Void> - Returns:
- the value of the
inforecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceOutgoingRpcMethod<Void,Void> - Returns:
- the value of the
attributesrecord component
-