Record Class OutgoingRpcMethod.Simple
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.OutgoingRpcMethod.Simple
- Record Components:
info-attributes-
- All Implemented Interfaces:
OutgoingRpcMethod<Void,Void>
- Enclosing interface:
OutgoingRpcMethod<Params,Result>
public static record OutgoingRpcMethod.Simple(RpcMethodInfo info, OutgoingRpcMethod.Attributes attributes)
extends Record
implements OutgoingRpcMethod<Void,Void>
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/OutgoingRpcMethod$Simpleintermediary net/minecraft/class_11808$class_11813official atp$gnamed infointermediary comp_4668official bnamed attributesintermediary comp_4909official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
OutgoingRpcMethod.Attributes, OutgoingRpcMethod.Builder<T extends OutgoingRpcMethod<?,?>>, OutgoingRpcMethod.Factory<T extends OutgoingRpcMethod<?, ?>>, OutgoingRpcMethod.Notification<Params>, OutgoingRpcMethod.Parameterized<Params, Result>, OutgoingRpcMethod.Parameterless<Result>, OutgoingRpcMethod.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OutgoingRpcMethod.AttributesThe field for theattributesrecord component.private final RpcMethodInfoThe field for theinforecord component.Fields inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
NOTIFICATION_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionSimple(RpcMethodInfo rpcMethodInfo, OutgoingRpcMethod.Attributes attributes) -
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
decodeResult, encodeParams
-
Field Details
-
info
The field for theinforecord component. -
attributes
The field for theattributesrecord component.
-
-
Constructor Details
-
Simple
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-