Record Class IncomingRpcMethod.Attributes
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Attributes
- Record Components:
runOnMainThread-discoverable-
- Enclosing interface:
IncomingRpcMethod
public static record IncomingRpcMethod.Attributes(boolean runOnMainThread, boolean discoverable)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/IncomingRpcMethod$Attributesintermediary net/minecraft/class_11796$class_12053official ati$anamed runOnMainThreadintermediary comp_4905official anamed discoverableintermediary comp_4906official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thediscoverablerecord component.private final booleanThe field for therunOnMainThreadrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thediscoverablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therunOnMainThreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
runOnMainThread
private final boolean runOnMainThreadThe field for therunOnMainThreadrecord component. -
discoverable
private final boolean discoverableThe field for thediscoverablerecord component.
-
-
Constructor Details
-
Attributes
public Attributes(boolean bool, boolean bool2)
-
-
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 with '=='. -
runOnMainThread
public boolean runOnMainThread()Returns the value of therunOnMainThreadrecord component.- Returns:
- the value of the
runOnMainThreadrecord component
-
discoverable
public boolean discoverable()Returns the value of thediscoverablerecord component.- Returns:
- the value of the
discoverablerecord component
-