Class CowEntity

All Implemented Interfaces:
Attackable, Targeter, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
class_8405, MooshroomEntity

public class CowEntity extends AnimalEntity
Mappings:
Namespace Name
official bva
intermediary net/minecraft/class_1430
named net/minecraft/entity/passive/CowEntity
  • Field Details

    • field_44102

      public static final TrackedData<Integer> field_44102
      Mappings:
      Namespace Name Mixin selector
      official bV Lbva;bV:Lacg;
      intermediary field_44102 Lnet/minecraft/class_1430;field_44102:Lnet/minecraft/class_2940;
      named field_44102 Lnet/minecraft/entity/passive/CowEntity;field_44102:Lnet/minecraft/entity/data/TrackedData;
    • field_44103

      private int field_44103
      Mappings:
      Namespace Name Mixin selector
      official bW Lbva;bW:I
      intermediary field_44103 Lnet/minecraft/class_1430;field_44103:I
      named field_44103 Lnet/minecraft/entity/passive/CowEntity;field_44103:I
    • field_44104

      private boolean field_44104
      Mappings:
      Namespace Name Mixin selector
      official bY Lbva;bY:Z
      intermediary field_44104 Lnet/minecraft/class_1430;field_44104:Z
      named field_44104 Lnet/minecraft/entity/passive/CowEntity;field_44104:Z
  • Constructor Details

    • CowEntity

      public CowEntity(EntityType<? extends CowEntity> entityType, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbir;<init>(Lbiv;Lcql;)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

    • initGoals

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

      protected boolean method_50682()
      Mappings:
      Namespace Name Mixin selector
      official q Lbva;q()Z
      intermediary method_50682 Lnet/minecraft/class_1430;method_50682()Z
      named method_50682 Lnet/minecraft/entity/passive/CowEntity;method_50682()Z
    • method_50683

      public int method_50683()
      Mappings:
      Namespace Name Mixin selector
      official r Lbva;r()I
      intermediary method_50683 Lnet/minecraft/class_1430;method_50683()I
      named method_50683 Lnet/minecraft/entity/passive/CowEntity;method_50683()I
    • method_50684

      public void method_50684(int int2)
      Mappings:
      Namespace Name Mixin selector
      official s Lbva;s(I)V
      intermediary method_50684 Lnet/minecraft/class_1430;method_50684(I)V
      named method_50684 Lnet/minecraft/entity/passive/CowEntity;method_50684(I)V
    • writeCustomDataToNbt

      public 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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbir;b(Lqr;)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
    • readCustomDataFromNbt

      public 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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbir;a(Lqr;)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
    • initDataTracker

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

      public void method_50670()
      Overrides:
      method_50670 in class PathAwareEntity
      Mappings:
      Namespace Name Mixin selector
      official gm Lbjq;gm()V
      intermediary method_50670 Lnet/minecraft/class_1314;method_50670()V
      named method_50670 Lnet/minecraft/entity/mob/PathAwareEntity;method_50670()V
    • method_50679

      private void method_50679()
      Mappings:
      Namespace Name Mixin selector
      official gt Lbva;gt()V
      intermediary method_50679 Lnet/minecraft/class_1430;method_50679()V
      named method_50679 Lnet/minecraft/entity/passive/CowEntity;method_50679()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbjh;b_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()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.

      Overrides:
      onTrackedDataSet in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbir;a(Lacg;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • getMountedHeightOffset

      public double getMountedHeightOffset()
      Overrides:
      getMountedHeightOffset in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official bF Lbir;bF()D
      intermediary method_5621 Lnet/minecraft/class_1297;method_5621()D
      named getMountedHeightOffset Lnet/minecraft/entity/Entity;getMountedHeightOffset()D
    • method_50685

      public float method_50685()
      Mappings:
      Namespace Name Mixin selector
      official w Lbva;w()F
      intermediary method_50685 Lnet/minecraft/class_1430;method_50685()F
      named method_50685 Lnet/minecraft/entity/passive/CowEntity;method_50685()F
    • getControllingPassenger

      @Nullable public @Nullable LivingEntity getControllingPassenger()
      Returns the passenger in control of this entity, or null if there is none.

      Rideable entities should override this to return the entity. This is usually #getFirstPassenger.

      Overrides:
      getControllingPassenger in class MobEntity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cU Lbir;cU()Lbjh;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
      named getControllingPassenger Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
    • getDimensions

      public EntityDimensions getDimensions(EntityPose pose)
      Returns the dimensions of the entity with the given pose.
      Overrides:
      getDimensions in class LivingEntity
      Returns:
      the dimensions of the entity with the given pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbir;a(Lbjt;)Lbis;
      intermediary method_18377 Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      named getDimensions Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
    • method_50680

      private void method_50680()
      Mappings:
      Namespace Name Mixin selector
      official gu Lbva;gu()V
      intermediary method_50680 Lnet/minecraft/class_1430;method_50680()V
      named method_50680 Lnet/minecraft/entity/passive/CowEntity;method_50680()V
    • drop

      protected void drop(DamageSource source)
      Overrides:
      drop in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official h Lbjh;h(Lbhw;)V
      intermediary method_16080 Lnet/minecraft/class_1309;method_16080(Lnet/minecraft/class_1282;)V
      named drop Lnet/minecraft/entity/LivingEntity;drop(Lnet/minecraft/entity/damage/DamageSource;)V
    • createCowAttributes

      public static DefaultAttributeContainer.Builder createCowAttributes()
      Mappings:
      Namespace Name Mixin selector
      official gn Lbva;gn()Lbkn$a;
      intermediary method_26883 Lnet/minecraft/class_1430;method_26883()Lnet/minecraft/class_5132$class_5133;
      named createCowAttributes Lnet/minecraft/entity/passive/CowEntity;createCowAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lbjj;s()Laml;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbjh;d(Lbhw;)Laml;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official x_ Lbjh;x_()Laml;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbir;b(Lgt;Ldgh;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • getSoundVolume

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

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbjj;c(Lcby;Lbhh;)Lbhi;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • createChild

      @Nullable public @Nullable CowEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbva;b(Laik;Lbim;)Lbva;
      intermediary method_6483 Lnet/minecraft/class_1430;method_6483(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1430;
      named createChild Lnet/minecraft/entity/passive/CowEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/CowEntity;
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbjh;b(Lbjt;Lbis;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F