Package net.minecraft
Record Class class_9011
java.lang.Object
java.lang.Record
net.minecraft.class_9011
- Record Components:
owner-value-display-numberFormatOverride-
public record class_9011(String owner, int value, @Nullable Text display, @Nullable class_9022 numberFormatOverride)
extends Record
- Mappings:
Namespace Name official emjintermediary net/minecraft/class_9011named net/minecraft/class_9011official aintermediary comp_2127named ownerofficial bintermediary comp_2128named valueofficial cintermediary comp_2129named displayofficial dintermediary comp_2130named numberFormatOverride
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedisplayrecord component.private final @Nullable class_9022The field for thenumberFormatOverriderecord component.private final StringThe field for theownerrecord component.private final intThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9011(String string, int int2, @Nullable Text text, @Nullable class_9022 class_9022) -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmethod_55386(class_9022 class_9022) Returns the value of thenumberFormatOverriderecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Field Details
-
owner
The field for theownerrecord component. -
value
private final int valueThe field for thevaluerecord component. -
display
The field for thedisplayrecord component. -
numberFormatOverride
The field for thenumberFormatOverriderecord component.
-
-
Constructor Details
-
class_9011
-
-
Method Details
-
method_55385
public boolean method_55385()- Mappings:
Namespace Name Mixin selector official aLemj;a()Zintermediary method_55385Lnet/minecraft/class_9011;method_55385()Znamed method_55385Lnet/minecraft/class_9011;method_55385()Z
-
method_55387
- Mappings:
Namespace Name Mixin selector official bLemj;b()Lvd;intermediary method_55387Lnet/minecraft/class_9011;method_55387()Lnet/minecraft/class_2561;named method_55387Lnet/minecraft/class_9011;method_55387()Lnet/minecraft/text/Text;
-
method_55386
- Mappings:
Namespace Name Mixin selector official aLemj;a(Lwt;)Lvr;intermediary method_55386Lnet/minecraft/class_9011;method_55386(Lnet/minecraft/class_9022;)Lnet/minecraft/class_5250;named method_55386Lnet/minecraft/class_9011;method_55386(Lnet/minecraft/class_9022;)Lnet/minecraft/text/MutableText;
-
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 '=='. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
numberFormatOverride
Returns the value of thenumberFormatOverriderecord component.- Returns:
- the value of the
numberFormatOverriderecord component
-