Package net.minecraft
Record Class class_7557.class_7560
java.lang.Object
java.lang.Record
net.minecraft.class_7557.class_7560
- Record Components:
id-message-
- Enclosing interface:
class_7557
@Environment(CLIENT)
public static record class_7557.class_7560(int id, class_7557 message)
extends Record
- Mappings:
Namespace Name official euj$cintermediary net/minecraft/class_7557$class_7560named net/minecraft/class_7557$class_7560official aintermediary comp_873named idofficial bintermediary comp_874named message
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theidrecord component.private final class_7557The field for themessagerecord component. -
Constructor Summary
Constructors -
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.intid()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_7560
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-