Package net.minecraft

Record Class class_8409.class_8410

java.lang.Object
java.lang.Record
net.minecraft.class_8409.class_8410
Record Components:
type -
tag -
Enclosing class:
class_8409

public static record class_8409.class_8410(EntityType<?> type, Optional<NbtCompound> tag) extends Record
Mappings:
Namespace Name
official cdq$a
intermediary net/minecraft/class_8409$class_8410
named net/minecraft/class_8409$class_8410
official b
intermediary comp_1434
named type
official c
intermediary comp_1435
named tag
  • Field Details

    • type

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

      private final Optional<NbtCompound> tag
      The field for the tag record component.
    • field_44129

      public static final com.mojang.serialization.Codec<class_8409.class_8410> field_44129
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq$a;a:Lcom/mojang/serialization/Codec;
      intermediary field_44129 Lnet/minecraft/class_8409$class_8410;field_44129:Lcom/mojang/serialization/Codec;
      named field_44129 Lnet/minecraft/class_8409$class_8410;field_44129:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_50749

      @Nullable public @Nullable Entity method_50749(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq$a;a(Lbjh;)Lbir;
      intermediary method_50749 Lnet/minecraft/class_8409$class_8410;method_50749(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1297;
      named method_50749 Lnet/minecraft/class_8409$class_8410;method_50749(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/Entity;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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 EntityType<?> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • tag

      public Optional<NbtCompound> tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component