Package net.minecraft
Record Class class_11054
java.lang.Object
java.lang.Record
net.minecraft.class_11054
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name named net/minecraft/class_11054intermediary net/minecraft/class_11054official dfp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thecrecord component.static final com.mojang.serialization.Codec<class_11054> static final PacketCodec<ByteBuf, class_11054> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable PlayerEntity playerEntity, ItemStack itemStack) floatc()Returns the value of thecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatmethod_69583(@Nullable PlayerEntity playerEntity, ItemStack itemStack) private floatmethod_69584(@Nullable PlayerEntity playerEntity, Iterable<ItemStack> iterable) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
c
private final float cThe field for thecrecord component. -
field_58851
- Mappings:
Namespace Name Mixin selector named field_58851Lnet/minecraft/class_11054;field_58851:Lcom/mojang/serialization/Codec;intermediary field_58851Lnet/minecraft/class_11054;field_58851:Lcom/mojang/serialization/Codec;official aLdfp;a:Lcom/mojang/serialization/Codec;
-
field_58852
- Mappings:
Namespace Name Mixin selector named field_58852Lnet/minecraft/class_11054;field_58852:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58852Lnet/minecraft/class_11054;field_58852:Lnet/minecraft/class_9139;official bLdfp;b:Lzg;
-
-
Constructor Details
-
class_11054
public class_11054(float float2)
-
-
Method Details
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity playerEntity, ItemStack itemStack) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLdgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V
-
method_69583
- Mappings:
Namespace Name Mixin selector named method_69583Lnet/minecraft/class_11054;method_69583(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Fintermediary method_69583Lnet/minecraft/class_11054;method_69583(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Fofficial aLdfp;a(Lcuf;Ldcs;)F
-
method_69584
private float method_69584(@Nullable @Nullable PlayerEntity playerEntity, Iterable<ItemStack> iterable) - Mappings:
Namespace Name Mixin selector named method_69584Lnet/minecraft/class_11054;method_69584(Lnet/minecraft/entity/player/PlayerEntity;Ljava/lang/Iterable;)Fintermediary method_69584Lnet/minecraft/class_11054;method_69584(Lnet/minecraft/class_1657;Ljava/lang/Iterable;)Fofficial aLdfp;a(Lcuf;Ljava/lang/Iterable;)F
-
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 '=='. -
c
public float c()Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-