Package net.minecraft

Class class_8113.class_8122

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Enclosing class:
class_8113

public static class class_8113.class_8122 extends class_8113
Mappings:
Namespace Name
official bex$i
intermediary net/minecraft/class_8113$class_8122
named net/minecraft/class_8113$class_8122
  • Field Details

    • field_42421

      private static final String field_42421
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbex$i;o:Ljava/lang/String;
      intermediary field_42421 Lnet/minecraft/class_8113$class_8122;field_42421:Ljava/lang/String;
      named field_42421 Lnet/minecraft/class_8113$class_8122;field_42421:Ljava/lang/String;
    • field_42422

      private static final String field_42422
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lbex$i;p:Ljava/lang/String;
      intermediary field_42422 Lnet/minecraft/class_8113$class_8122;field_42422:Ljava/lang/String;
      named field_42422 Lnet/minecraft/class_8113$class_8122;field_42422:Ljava/lang/String;
    • field_42423

      private static final TrackedData<ItemStack> field_42423
      Mappings:
      Namespace Name Mixin selector
      official q Lbex$i;q:Lace;
      intermediary field_42423 Lnet/minecraft/class_8113$class_8122;field_42423:Lnet/minecraft/class_2940;
      named field_42423 Lnet/minecraft/class_8113$class_8122;field_42423:Lnet/minecraft/entity/data/TrackedData;
    • field_42424

      private static final TrackedData<Byte> field_42424
      Mappings:
      Namespace Name Mixin selector
      official r Lbex$i;r:Lace;
      intermediary field_42424 Lnet/minecraft/class_8113$class_8122;field_42424:Lnet/minecraft/class_2940;
      named field_42424 Lnet/minecraft/class_8113$class_8122;field_42424:Lnet/minecraft/entity/data/TrackedData;
    • field_42425

      private final StackReference field_42425
      Mappings:
      Namespace Name Mixin selector
      official s Lbex$i;s:Lbgg;
      intermediary field_42425 Lnet/minecraft/class_8113$class_8122;field_42425:Lnet/minecraft/class_5630;
      named field_42425 Lnet/minecraft/class_8113$class_8122;field_42425:Lnet/minecraft/inventory/StackReference;
  • Constructor Details

    • class_8122

      public class_8122(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbey;<init>(Lbfc;Lclt;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class class_8113
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbey;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • method_48900

      public ItemStack method_48900()
      Mappings:
      Namespace Name Mixin selector
      official o Lbex$i;o()Lcfh;
      intermediary method_48900 Lnet/minecraft/class_8113$class_8122;method_48900()Lnet/minecraft/class_1799;
      named method_48900 Lnet/minecraft/class_8113$class_8122;method_48900()Lnet/minecraft/item/ItemStack;
    • method_48897

      void method_48897(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex$i;a(Lcfh;)V
      intermediary method_48897 Lnet/minecraft/class_8113$class_8122;method_48897(Lnet/minecraft/class_1799;)V
      named method_48897 Lnet/minecraft/class_8113$class_8122;method_48897(Lnet/minecraft/item/ItemStack;)V
    • method_48896

      private void method_48896(Mode mode)
      Mappings:
      Namespace Name Mixin selector
      official a Lbex$i;a(Lcfe;)V
      intermediary method_48896 Lnet/minecraft/class_8113$class_8122;method_48896(Lnet/minecraft/class_811;)V
      named method_48896 Lnet/minecraft/class_8113$class_8122;method_48896(Lnet/minecraft/client/render/model/json/Mode;)V
    • method_48901

      public Mode method_48901()
      Mappings:
      Namespace Name Mixin selector
      official p Lbex$i;p()Lcfe;
      intermediary method_48901 Lnet/minecraft/class_8113$class_8122;method_48901()Lnet/minecraft/class_811;
      named method_48901 Lnet/minecraft/class_8113$class_8122;method_48901()Lnet/minecraft/client/render/model/json/Mode;
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class class_8113
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lqy;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class class_8113
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbey;b(Lqy;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getStackReference

      public StackReference getStackReference(int mappedIndex)
      Obtains a stack reference to be modified. Used by commands like /loot or /item.
      Overrides:
      getStackReference in class Entity
      Parameters:
      mappedIndex - the mapped index as given by the item slot argument
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbey;a_(I)Lbgg;
      intermediary method_32318 Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
      named getStackReference Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;