Record Class NegotiatedNetworkComponent
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.negotiation.NegotiatedNetworkComponent
- Record Components:
id- The id of the componentversion- The version of the component, if any
Represents a network component that has been negotiated between the client and server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNegotiatedNetworkComponent(Identifier id, String version) Creates an instance of aNegotiatedNetworkComponentrecord 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.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
id
The field for theidrecord component. -
version
-
-
Constructor Details
-
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). -
id
-
version
-