Package net.minecraft

Class class_11011

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, Leashable, Tameable, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable

public class class_11011 extends class_10995
Mappings:
Namespace Name
named net/minecraft/class_11011
intermediary net/minecraft/class_11011
official ctu
  • Field Details

    • field_58663

      private static final TrackedData<Integer> field_58663
      Mappings:
      Namespace Name Mixin selector
      named field_58663 Lnet/minecraft/class_11011;field_58663:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58663 Lnet/minecraft/class_11011;field_58663:Lnet/minecraft/class_2940;
      official bO Lctu;bO:Lale;
    • field_58664

      private static final TrackedData<Byte> field_58664
      Mappings:
      Namespace Name Mixin selector
      named field_58664 Lnet/minecraft/class_11011;field_58664:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58664 Lnet/minecraft/class_11011;field_58664:Lnet/minecraft/class_2940;
      official bP Lctu;bP:Lale;
    • field_58665

      private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> field_58665
      Mappings:
      Namespace Name Mixin selector
      named field_58665 Lnet/minecraft/class_11011;field_58665:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58665 Lnet/minecraft/class_11011;field_58665:Lnet/minecraft/class_2940;
      official bQ Lctu;bQ:Lale;
    • field_58666

      private static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> field_58666
      Mappings:
      Namespace Name Mixin selector
      named field_58666 Lnet/minecraft/class_11011;field_58666:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58666 Lnet/minecraft/class_11011;field_58666:Lnet/minecraft/class_2940;
      official bR Lctu;bR:Lale;
  • Constructor Details

    • class_11011

      public class_11011(EntityType<? extends class_11011> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbye;<init>(Lbyn;Ldmy;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class TameableEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbye;a(Lali$a;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official j_ Lbzf;j_()V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class TameableEntity
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      official b Lbye;b(B)V
    • method_69388

      public static DefaultAttributeContainer.Builder method_69388()
      Mappings:
      Namespace Name Mixin selector
      named method_69388 Lnet/minecraft/class_11011;method_69388()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_69388 Lnet/minecraft/class_11011;method_69388()Lnet/minecraft/class_5132$class_5133;
      official gH Lctu;gH()Lcak$a;
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbzh;a(Ldnp;Lbvz;Lbym;Lbzx;)Lbzx;
    • getBaseDimensions

      public EntityDimensions getBaseDimensions(EntityPose pose)
      Overrides:
      getBaseDimensions in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBaseDimensions Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55694 Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      official e Lbzf;e(Lbzr;)Lbyh;
    • method_69389

      public FoxEntity.Variant method_69389()
      Mappings:
      Namespace Name Mixin selector
      named method_69389 Lnet/minecraft/class_11011;method_69389()Lnet/minecraft/entity/passive/FoxEntity$Variant;
      intermediary method_69389 Lnet/minecraft/class_11011;method_69389()Lnet/minecraft/class_4019$class_4039;
      official gI Lctu;gI()Lclr$v;
    • method_69386

      private void method_69386(FoxEntity.Variant variant)
      Mappings:
      Namespace Name Mixin selector
      named method_69386 Lnet/minecraft/class_11011;method_69386(Lnet/minecraft/entity/passive/FoxEntity$Variant;)V
      intermediary method_69386 Lnet/minecraft/class_11011;method_69386(Lnet/minecraft/class_4019$class_4039;)V
      official a Lctu;a(Lclr$v;)V
    • get

      @Nullable public <T> T get(ComponentType<? extends T> type)
      Specified by:
      get in interface ComponentsAccess
      Overrides:
      get in class Entity
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
      intermediary method_58694 Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
      official a Lkh;a(Lkl;)Ljava/lang/Object;
    • copyComponentsFrom

      protected void copyComponentsFrom(ComponentsAccess from)
      Overrides:
      copyComponentsFrom in class Entity
      Mappings:
      Namespace Name Mixin selector
      named copyComponentsFrom Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_66649 Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
      official a Lbye;a(Lkh;)V
    • setApplicableComponent

      protected <T> boolean setApplicableComponent(ComponentType<T> type, T value)
      Overrides:
      setApplicableComponent in class Entity
      Mappings:
      Namespace Name Mixin selector
      named setApplicableComponent Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
      intermediary method_66654 Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
      official b Lbye;b(Lkl;Ljava/lang/Object;)Z
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have 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 TameableEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbye;b(Luc;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have 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 TameableEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbye;a(Luc;)V
    • method_69387

      private void method_69387(int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_69387 Lnet/minecraft/class_11011;method_69387(IZ)V
      intermediary method_69387 Lnet/minecraft/class_11011;method_69387(IZ)V
      official d Lctu;d(IZ)V
    • method_69391

      private boolean method_69391(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_69391 Lnet/minecraft/class_11011;method_69391(I)Z
      intermediary method_69391 Lnet/minecraft/class_11011;method_69391(I)Z
      official s Lctu;s(I)Z
    • canDispenserEquipSlot

      protected boolean canDispenserEquipSlot(EquipmentSlot slot)
      Overrides:
      canDispenserEquipSlot in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canDispenserEquipSlot Lnet/minecraft/entity/LivingEntity;canDispenserEquipSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_63626 Lnet/minecraft/class_1309;method_63626(Lnet/minecraft/class_1304;)Z
      official f Lbzf;f(Lbyo;)Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official i Lbye;i()V
    • method_69390

      boolean method_69390()
      Mappings:
      Namespace Name Mixin selector
      named method_69390 Lnet/minecraft/class_11011;method_69390()Z
      intermediary method_69390 Lnet/minecraft/class_11011;method_69390()Z
      official gJ Lctu;gJ()Z
    • playAmbientSound

      public void playAmbientSound()
      Overrides:
      playAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named playAmbientSound Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
      intermediary method_5966 Lnet/minecraft/class_1308;method_5966()V
      official S Lbzh;S()V
    • getAmbientSound

      @Nullable protected @Nullable SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official r Lbzh;r()Laxv;
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      official cZ Lbye;cZ()Lfkb;