Package net.minecraft
Record Class class_9540
java.lang.Object
java.lang.Record
net.minecraft.class_9540
- Record Components:
value-
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name official cybintermediary net/minecraft/class_9540named net/minecraft/class_9540official dintermediary comp_2576named value
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final class_9540static final com.mojang.serialization.Codec<class_9540> static final PacketCodec<ByteBuf, class_9540> private final intThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Consumer<Text> textConsumer, TooltipContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final int valueThe field for thevaluerecord component. -
field_50715
- Mappings:
Namespace Name Mixin selector official aLcyb;a:Lcyb;intermediary field_50715Lnet/minecraft/class_9540;field_50715:Lnet/minecraft/class_9540;named field_50715Lnet/minecraft/class_9540;field_50715:Lnet/minecraft/class_9540;
-
field_50716
- Mappings:
Namespace Name Mixin selector official bLcyb;b:Lcom/mojang/serialization/Codec;intermediary field_50716Lnet/minecraft/class_9540;field_50716:Lcom/mojang/serialization/Codec;named field_50716Lnet/minecraft/class_9540;field_50716:Lcom/mojang/serialization/Codec;
-
field_50717
- Mappings:
Namespace Name Mixin selector official cLcyb;c:Lzc;intermediary field_50717Lnet/minecraft/class_9540;field_50717:Lnet/minecraft/class_9139;named field_50717Lnet/minecraft/class_9540;field_50717:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
class_9540
public class_9540(int int2)
-
-
Method Details
-
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector official aLcxx;a(Ljava/util/function/Consumer;Lcwi;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/TooltipAppender;appendTooltip(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
-
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 '=='. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-