Package net.minecraft

Class class_11024

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

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

    • field_58704

      private static final TrackedData<Integer> field_58704
      Mappings:
      Namespace Name Mixin selector
      named field_58704 Lnet/minecraft/class_11024;field_58704:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58704 Lnet/minecraft/class_11024;field_58704:Lnet/minecraft/class_2940;
      official bU Lcty;bU:Lale;
    • field_58698

      public static final int field_58698
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58698 Lnet/minecraft/class_11024;field_58698:I
      intermediary field_58698 Lnet/minecraft/class_11024;field_58698:I
      official bO Lcty;bO:I
    • field_58699

      public static final int field_58699
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58699 Lnet/minecraft/class_11024;field_58699:I
      intermediary field_58699 Lnet/minecraft/class_11024;field_58699:I
      official bP Lcty;bP:I
    • field_58700

      public static final int field_58700
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58700 Lnet/minecraft/class_11024;field_58700:I
      intermediary field_58700 Lnet/minecraft/class_11024;field_58700:I
      official bQ Lcty;bQ:I
    • field_58705

      private static final boolean field_58705
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58705 Lnet/minecraft/class_11024;field_58705:Z
      intermediary field_58705 Lnet/minecraft/class_11024;field_58705:Z
      official bV Lcty;bV:Z
    • field_58701

      public float field_58701
      Mappings:
      Namespace Name Mixin selector
      named field_58701 Lnet/minecraft/class_11024;field_58701:F
      intermediary field_58701 Lnet/minecraft/class_11024;field_58701:F
      official bR Lcty;bR:F
    • field_58702

      public float field_58702
      Mappings:
      Namespace Name Mixin selector
      named field_58702 Lnet/minecraft/class_11024;field_58702:F
      intermediary field_58702 Lnet/minecraft/class_11024;field_58702:F
      official bS Lcty;bS:F
    • field_58703

      public float field_58703
      Mappings:
      Namespace Name Mixin selector
      named field_58703 Lnet/minecraft/class_11024;field_58703:F
      intermediary field_58703 Lnet/minecraft/class_11024;field_58703:F
      official bT Lcty;bT:F
    • field_58706

      private boolean field_58706
      Mappings:
      Namespace Name Mixin selector
      named field_58706 Lnet/minecraft/class_11024;field_58706:Z
      intermediary field_58706 Lnet/minecraft/class_11024;field_58706:Z
      official bW Lcty;bW:Z
  • Constructor Details

    • class_11024

      public class_11024(EntityType<? extends class_11024> 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

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class class_10995
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official C Lbzh;C()V
    • getSoundCategory

      public SoundCategory getSoundCategory()
      Returns the sound category for sounds from this entity.

      This is used by Entity.playSound(SoundEvent, float, float) and defaults to SoundCategory.NEUTRAL. Hostile entities should override this to return SoundCategory.HOSTILE.

      Overrides:
      getSoundCategory in class Entity
      Returns:
      the sound category for sounds from this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      official dr Lbye;dr()Laxx;
    • 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
    • method_69410

      public void method_69410(int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_69410 Lnet/minecraft/class_11024;method_69410(IZ)V
      intermediary method_69410 Lnet/minecraft/class_11024;method_69410(IZ)V
      official d Lcty;d(IZ)V
    • method_69411

      public int method_69411()
      Mappings:
      Namespace Name Mixin selector
      named method_69411 Lnet/minecraft/class_11024;method_69411()I
      intermediary method_69411 Lnet/minecraft/class_11024;method_69411()I
      official gH Lcty;gH()I
    • 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_69412

      public boolean method_69412()
      Mappings:
      Namespace Name Mixin selector
      named method_69412 Lnet/minecraft/class_11024;method_69412()Z
      intermediary method_69412 Lnet/minecraft/class_11024;method_69412()Z
      official gI Lcty;gI()Z
    • method_69413

      protected ParticleEffect method_69413()
      Mappings:
      Namespace Name Mixin selector
      named method_69413 Lnet/minecraft/class_11024;method_69413()Lnet/minecraft/particle/ParticleEffect;
      intermediary method_69413 Lnet/minecraft/class_11024;method_69413()Lnet/minecraft/class_2394;
      official gJ Lcty;gJ()Lly;
    • isDisallowedInPeaceful

      protected boolean isDisallowedInPeaceful()
      Overrides:
      isDisallowedInPeaceful in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named isDisallowedInPeaceful Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
      intermediary method_23734 Lnet/minecraft/class_1308;method_23734()Z
      official Z Lbzh;Z()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_69414

      protected void method_69414()
      Mappings:
      Namespace Name Mixin selector
      named method_69414 Lnet/minecraft/class_11024;method_69414()V
      intermediary method_69414 Lnet/minecraft/class_11024;method_69414()V
      official gK Lcty;gK()V
    • method_69415

      protected int method_69415()
      Mappings:
      Namespace Name Mixin selector
      named method_69415 Lnet/minecraft/class_11024;method_69415()I
      intermediary method_69415 Lnet/minecraft/class_11024;method_69415()I
      official gL Lcty;gL()I
    • calculateDimensions

      public void calculateDimensions()
      Calculates and sets the dimension (bounding box) of the entity and refreshes its position.
      Overrides:
      calculateDimensions in class Entity
      Mappings:
      Namespace Name Mixin selector
      named calculateDimensions Lnet/minecraft/entity/Entity;calculateDimensions()V
      intermediary method_18382 Lnet/minecraft/class_1297;method_18382()V
      official i_ Lbye;i_()V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lalh;a(Lale;)V
    • getType

      public EntityType<? extends class_11024> getType()
      Overrides:
      getType in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/entity/Entity;getType()Lnet/minecraft/entity/EntityType;
      intermediary method_5864 Lnet/minecraft/class_1297;method_5864()Lnet/minecraft/class_1299;
      official at Lbye;at()Lbyn;
    • getPassengerAttachmentPos

      protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
      Overrides:
      getPassengerAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getPassengerAttachmentPos Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_52533 Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
      official a Lbye;a(Lbye;Lbyh;F)Lfkb;
    • method_69416

      protected SoundEvent method_69416()
      Mappings:
      Namespace Name Mixin selector
      named method_69416 Lnet/minecraft/class_11024;method_69416()Lnet/minecraft/sound/SoundEvent;
      intermediary method_69416 Lnet/minecraft/class_11024;method_69416()Lnet/minecraft/class_3414;
      official gM Lcty;gM()Laxv;
    • method_69409

      public static boolean method_69409(EntityType<class_11024> entityType, WorldAccess worldAccess, SpawnReason spawnReason, BlockPos blockPos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named method_69409 Lnet/minecraft/class_11024;method_69409(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_69409 Lnet/minecraft/class_11024;method_69409(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official c Lcty;c(Lbyn;Ldmz;Lbym;Lix;Lbbg;)Z
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      official fj Lbzf;fj()F
    • getMaxLookPitchChange

      public int getMaxLookPitchChange()
      Returns the maximum degrees which the pitch can change when looking.

      This is used by the look control.

      It can return from 1 for entities that can hardly raise their head, like axolotls or dolphins, or 180 for entities that can freely raise and lower their head, like guardians. The default return value is 40.

      Overrides:
      getMaxLookPitchChange in class MobEntity
      Returns:
      the maximum degrees which the pitch can change when looking
      Mappings:
      Namespace Name Mixin selector
      named getMaxLookPitchChange Lnet/minecraft/entity/mob/MobEntity;getMaxLookPitchChange()I
      intermediary method_5978 Lnet/minecraft/class_1308;method_5978()I
      official ab Lbzh;ab()I
    • method_69417

      protected boolean method_69417()
      Mappings:
      Namespace Name Mixin selector
      named method_69417 Lnet/minecraft/class_11024;method_69417()Z
      intermediary method_69417 Lnet/minecraft/class_11024;method_69417()Z
      official gN Lcty;gN()Z
    • jump

      public void jump()
      Overrides:
      jump in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named jump Lnet/minecraft/entity/LivingEntity;jump()V
      intermediary method_6043 Lnet/minecraft/class_1309;method_6043()V
      official x Lbzf;x()V
    • 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;
    • method_69419

      float method_69419()
      Mappings:
      Namespace Name Mixin selector
      named method_69419 Lnet/minecraft/class_11024;method_69419()F
      intermediary method_69419 Lnet/minecraft/class_11024;method_69419()F
      official gP Lcty;gP()F
    • method_69418

      protected SoundEvent method_69418()
      Mappings:
      Namespace Name Mixin selector
      named method_69418 Lnet/minecraft/class_11024;method_69418()Lnet/minecraft/sound/SoundEvent;
      intermediary method_69418 Lnet/minecraft/class_11024;method_69418()Lnet/minecraft/class_3414;
      official gO Lcty;gO()Laxv;
    • 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;