Class VexEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Leashable, Monster, Ownable, Targeter, ScoreHolder, Nameable, EntityLike

public class VexEntity extends HostileEntity implements Ownable
Mappings:
Namespace Name
named net/minecraft/entity/mob/VexEntity
intermediary net/minecraft/class_1634
official cnk
  • Field Details

    • field_30502

      public static final float field_30502
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30502 Lnet/minecraft/entity/mob/VexEntity;field_30502:F
      intermediary field_30502 Lnet/minecraft/class_1634;field_30502:F
      official a Lcnk;a:F
    • field_28645

      public static final int field_28645
      Mappings:
      Namespace Name Mixin selector
      named field_28645 Lnet/minecraft/entity/mob/VexEntity;field_28645:I
      intermediary field_28645 Lnet/minecraft/class_1634;field_28645:I
      official b Lcnk;b:I
    • VEX_FLAGS

      protected static final TrackedData<Byte> VEX_FLAGS
      Mappings:
      Namespace Name Mixin selector
      named VEX_FLAGS Lnet/minecraft/entity/mob/VexEntity;VEX_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7410 Lnet/minecraft/class_1634;field_7410:Lnet/minecraft/class_2940;
      official c Lcnk;c:Lalc;
    • CHARGING_FLAG

      private static final int CHARGING_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHARGING_FLAG Lnet/minecraft/entity/mob/VexEntity;CHARGING_FLAG:I
      intermediary field_30503 Lnet/minecraft/class_1634;field_30503:I
      official d Lcnk;d:I
    • owner

      Mappings:
      Namespace Name Mixin selector
      named owner Lnet/minecraft/entity/mob/VexEntity;owner:Lnet/minecraft/entity/mob/MobEntity;
      intermediary field_7411 Lnet/minecraft/class_1634;field_7411:Lnet/minecraft/class_1308;
      official bZ Lcnk;bZ:Lbwh;
    • bounds

      @Nullable private @Nullable BlockPos bounds
      Mappings:
      Namespace Name Mixin selector
      named bounds Lnet/minecraft/entity/mob/VexEntity;bounds:Lnet/minecraft/util/math/BlockPos;
      intermediary field_7407 Lnet/minecraft/class_1634;field_7407:Lnet/minecraft/class_2338;
      official ca Lcnk;ca:Ljh;
    • alive

      private boolean alive
      Mappings:
      Namespace Name Mixin selector
      named alive Lnet/minecraft/entity/mob/VexEntity;alive:Z
      intermediary field_7409 Lnet/minecraft/class_1634;field_7409:Z
      official cb Lcnk;cb:Z
    • lifeTicks

      private int lifeTicks
      Mappings:
      Namespace Name Mixin selector
      named lifeTicks Lnet/minecraft/entity/mob/VexEntity;lifeTicks:I
      intermediary field_7408 Lnet/minecraft/class_1634;field_7408:I
      official cc Lcnk;cc:I
  • Constructor Details

    • VexEntity

      public VexEntity(EntityType<? extends VexEntity> 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> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • isFlappingWings

      public boolean isFlappingWings()
      Returns whether the entity is flapping their wings.

      Entities flapping their wings will call Entity.addFlapEffects() inside Entity.addAirTravelEffects().

      Overrides:
      isFlappingWings in class Entity
      Returns:
      whether the entity is flapping their wings
      Mappings:
      Namespace Name Mixin selector
      named isFlappingWings Lnet/minecraft/entity/Entity;isFlappingWings()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      official ba Lbvj;ba()Z
    • shouldTickBlockCollision

      protected boolean shouldTickBlockCollision()
      Overrides:
      shouldTickBlockCollision in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldTickBlockCollision Lnet/minecraft/entity/Entity;shouldTickBlockCollision()Z
      intermediary method_61410 Lnet/minecraft/class_1297;method_61410()Z
      official aL Lbvj;aL()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 h Lbvj;h()V
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      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 B Lbwh;B()V
    • createVexAttributes

      public static DefaultAttributeContainer.Builder createVexAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createVexAttributes Lnet/minecraft/entity/mob/VexEntity;createVexAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26925 Lnet/minecraft/class_1634;method_26925()Lnet/minecraft/class_5132$class_5133;
      official m Lcnk;m()Lbxm$a;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      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 Lbvj;a(Lalg$a;)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 MobEntity
      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 Lbvj;a(Lux;)V
    • copyFrom

      public void copyFrom(Entity original)
      Copies serializable data and nether portal data from original.
      Overrides:
      copyFrom in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/entity/Entity;copyFrom(Lnet/minecraft/entity/Entity;)V
      intermediary method_5878 Lnet/minecraft/class_1297;method_5878(Lnet/minecraft/class_1297;)V
      official x Lbvj;x(Lbvj;)V
    • 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 MobEntity
      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 Lbvj;b(Lux;)V
    • getOwner

      @Nullable public @Nullable MobEntity getOwner()
      Specified by:
      getOwner in interface Ownable
      Mappings:
      Namespace Name Mixin selector
      named getOwner Lnet/minecraft/entity/mob/VexEntity;getOwner()Lnet/minecraft/entity/mob/MobEntity;
      intermediary method_7182 Lnet/minecraft/class_1634;method_7182()Lnet/minecraft/class_1308;
      official t Lcnk;t()Lbwh;
    • getBounds

      @Nullable public @Nullable BlockPos getBounds()
      Mappings:
      Namespace Name Mixin selector
      named getBounds Lnet/minecraft/entity/mob/VexEntity;getBounds()Lnet/minecraft/util/math/BlockPos;
      intermediary method_7186 Lnet/minecraft/class_1634;method_7186()Lnet/minecraft/class_2338;
      official x Lcnk;x()Ljh;
    • setBounds

      public void setBounds(@Nullable @Nullable BlockPos bounds)
      Mappings:
      Namespace Name Mixin selector
      named setBounds Lnet/minecraft/entity/mob/VexEntity;setBounds(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7188 Lnet/minecraft/class_1634;method_7188(Lnet/minecraft/class_2338;)V
      official h Lcnk;h(Ljh;)V
    • areFlagsSet

      private boolean areFlagsSet(int mask)
      Mappings:
      Namespace Name Mixin selector
      named areFlagsSet Lnet/minecraft/entity/mob/VexEntity;areFlagsSet(I)Z
      intermediary method_7184 Lnet/minecraft/class_1634;method_7184(I)Z
      official c Lcnk;c(I)Z
    • setVexFlag

      private void setVexFlag(int mask, boolean value)
      Mappings:
      Namespace Name Mixin selector
      named setVexFlag Lnet/minecraft/entity/mob/VexEntity;setVexFlag(IZ)V
      intermediary method_7189 Lnet/minecraft/class_1634;method_7189(IZ)V
      official a Lcnk;a(IZ)V
    • isCharging

      public boolean isCharging()
      Mappings:
      Namespace Name Mixin selector
      named isCharging Lnet/minecraft/entity/mob/VexEntity;isCharging()Z
      intermediary method_7176 Lnet/minecraft/class_1634;method_7176()Z
      official go Lcnk;go()Z
    • setCharging

      public void setCharging(boolean charging)
      Mappings:
      Namespace Name Mixin selector
      named setCharging Lnet/minecraft/entity/mob/VexEntity;setCharging(Z)V
      intermediary method_7177 Lnet/minecraft/class_1634;method_7177(Z)V
      official x Lcnk;x(Z)V
    • setOwner

      public void setOwner(MobEntity owner)
      Mappings:
      Namespace Name Mixin selector
      named setOwner Lnet/minecraft/entity/mob/VexEntity;setOwner(Lnet/minecraft/entity/mob/MobEntity;)V
      intermediary method_7178 Lnet/minecraft/class_1634;method_7178(Lnet/minecraft/class_1308;)V
      official a Lcnk;a(Lbwh;)V
    • setLifeTicks

      public void setLifeTicks(int lifeTicks)
      Mappings:
      Namespace Name Mixin selector
      named setLifeTicks Lnet/minecraft/entity/mob/VexEntity;setLifeTicks(I)V
      intermediary method_7181 Lnet/minecraft/class_1634;method_7181(I)V
      official b Lcnk;b(I)V
    • getAmbientSound

      protected 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 u Lbwh;u()Laxe;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official o_ Lbwf;o_()Laxe;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class HostileEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lbwf;e(Lbtz;)Laxe;
    • getBrightnessAtEyes

      public float getBrightnessAtEyes()
      Overrides:
      getBrightnessAtEyes in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getBrightnessAtEyes Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
      intermediary method_5718 Lnet/minecraft/class_1297;method_5718()F
      official by Lbvj;by()F
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class MobEntity
      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 Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;
    • initEquipment

      protected void initEquipment(Random random, LocalDifficulty localDifficulty)
      Overrides:
      initEquipment in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initEquipment Lnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_5964 Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Lbwh;a(Lbam;Lbtg;)V