Package net.minecraft
Record Class class_11050
java.lang.Object
java.lang.Record
net.minecraft.class_11050
- All Implemented Interfaces:
TooltipAppender
public record class_11050(RegistryEntry<EntityType<?>> c, boolean d)
extends Record
implements TooltipAppender
- Mappings:
Namespace Name named net/minecraft/class_11050intermediary net/minecraft/class_11050official ddi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry<EntityType<?>> The field for thecrecord component.private final booleanThe field for thedrecord component.static final com.mojang.serialization.Codec<class_11050> static final PacketCodec<RegistryByteBuf, class_11050> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable PlayerEntity playerEntity, ItemStack itemStack) c()Returns the value of thecrecord component.booleand()Returns the value of thedrecord component.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.
-
Field Details
-
c
The field for thecrecord component. -
d
private final boolean dThe field for thedrecord component. -
field_58848
- Mappings:
Namespace Name Mixin selector named field_58848Lnet/minecraft/class_11050;field_58848:Lcom/mojang/serialization/Codec;intermediary field_58848Lnet/minecraft/class_11050;field_58848:Lcom/mojang/serialization/Codec;official aLddi;a:Lcom/mojang/serialization/Codec;
-
field_58849
- Mappings:
Namespace Name Mixin selector named field_58849Lnet/minecraft/class_11050;field_58849:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58849Lnet/minecraft/class_11050;field_58849:Lnet/minecraft/class_9139;official bLddi;b:Lzg;
-
-
Constructor Details
-
class_11050
-
-
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
-
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 '=='. -
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
d
public boolean d()Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-