Package net.minecraft

Record Class class_11050

java.lang.Object
java.lang.Record
net.minecraft.class_11050
Record Components:
type -
shiny -
All Implemented Interfaces:
TooltipAppender

public record class_11050(RegistryEntry<EntityType<?>> type, boolean shiny) extends Record implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/class_11050
intermediary net/minecraft/class_11050
official ddi
named type
intermediary comp_3939
official c
named shiny
intermediary comp_3940
official d
  • Field Details

    • type

      private final RegistryEntry<EntityType<?>> type
      The field for the type record component.
    • shiny

      private final boolean shiny
      The field for the shiny record component.
    • field_58848

      public static final com.mojang.serialization.Codec<class_11050> field_58848
      Mappings:
      Namespace Name Mixin selector
      named field_58848 Lnet/minecraft/class_11050;field_58848:Lcom/mojang/serialization/Codec;
      intermediary field_58848 Lnet/minecraft/class_11050;field_58848:Lcom/mojang/serialization/Codec;
      official a Lddi;a:Lcom/mojang/serialization/Codec;
    • field_58849

      public static final PacketCodec<RegistryByteBuf,class_11050> field_58849
      Mappings:
      Namespace Name Mixin selector
      named field_58849 Lnet/minecraft/class_11050;field_58849:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58849 Lnet/minecraft/class_11050;field_58849:Lnet/minecraft/class_9139;
      official b Lddi;b:Lzg;
  • Constructor Details

  • Method Details

    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity playerEntity, ItemStack itemStack)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/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;)V
      intermediary method_57409 Lnet/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;)V
      official a Ldgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public RegistryEntry<EntityType<?>> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • shiny

      public boolean shiny()
      Returns the value of the shiny record component.
      Returns:
      the value of the shiny record component