Package net.minecraft.util.collection
Record Class Present<T>
java.lang.Object
java.lang.Record
net.minecraft.util.collection.Present<T>
- Record Components:
value-getWeight-
- Mappings:
Namespace Name named net/minecraft/util/collection/Presentintermediary net/minecraft/class_6010official brinamed valueintermediary comp_2542official anamed getWeightintermediary comp_2543official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> com.mojang.serialization.Codec<Present<E>> createCodec(com.mojang.serialization.Codec<E> dataCodec) final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegetWeightrecord component.final inthashCode()Returns a hash code value for this object.static <E> com.mojang.serialization.Codec<Present<E>> method_66211(com.mojang.serialization.MapCodec<E> mapCodec) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
getWeight
private final int getWeightThe field for thegetWeightrecord component. -
field_55645
- Mappings:
Namespace Name Mixin selector named field_55645Lnet/minecraft/util/collection/Present;field_55645:Lorg/slf4j/Logger;intermediary field_55645Lnet/minecraft/class_6010;field_55645:Lorg/slf4j/Logger;official cLbri;c:Lorg/slf4j/Logger;
-
-
Constructor Details
-
Present
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/collection/Present;<init>(Ljava/lang/Object;I)Vintermediary <init>Lnet/minecraft/class_6010;<init>(Ljava/lang/Object;I)Vofficial <init>Lbri;<init>(Ljava/lang/Object;I)V
-
-
Method Details
-
createCodec
public static <E> com.mojang.serialization.Codec<Present<E>> createCodec(com.mojang.serialization.Codec<E> dataCodec) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/util/collection/Present;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_34981Lnet/minecraft/class_6010;method_34981(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLbri;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
method_66211
public static <E> com.mojang.serialization.Codec<Present<E>> method_66211(com.mojang.serialization.MapCodec<E> mapCodec) - Mappings:
Namespace Name Mixin selector named method_66211Lnet/minecraft/util/collection/Present;method_66211(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/Codec;intermediary method_66211Lnet/minecraft/class_6010;method_66211(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/Codec;official aLbri;a(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/Codec;
-
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 '=='. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
getWeight
public int getWeight()Returns the value of thegetWeightrecord component.- Returns:
- the value of the
getWeightrecord component
-