Class FishEntity

All Implemented Interfaces:
Attackable, Bucketable, DataTracked, EquipmentHolder, Leashable, Targeter, ScoreHolder, Nameable, EntityLike
Direct Known Subclasses:
PufferfishEntity, SchoolingFishEntity, TadpoleEntity

public abstract class FishEntity extends WaterCreatureEntity implements Bucketable
Mappings:
Namespace Name
named net/minecraft/entity/passive/FishEntity
intermediary net/minecraft/class_1422
official chs
  • Field Details

    • FROM_BUCKET

      private static final TrackedData<Boolean> FROM_BUCKET
      Mappings:
      Namespace Name Mixin selector
      named FROM_BUCKET Lnet/minecraft/entity/passive/FishEntity;FROM_BUCKET:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_6730 Lnet/minecraft/class_1422;field_6730:Lnet/minecraft/class_2940;
      official a Lchs;a:Lalc;
  • Constructor Details

    • FishEntity

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

    • createFishAttributes

      public static DefaultAttributeContainer.Builder createFishAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createFishAttributes Lnet/minecraft/entity/passive/FishEntity;createFishAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26879 Lnet/minecraft/class_1422;method_26879()Lnet/minecraft/class_5132$class_5133;
      official m Lchs;m()Lbxm$a;
    • cannotDespawn

      public boolean cannotDespawn()
      Overrides:
      cannotDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named cannotDespawn Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
      intermediary method_17326 Lnet/minecraft/class_1308;method_17326()Z
      official W Lbwh;W()Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbwh;h(D)Z
    • getLimitPerChunk

      public int getLimitPerChunk()
      Overrides:
      getLimitPerChunk in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      official ad Lbwh;ad()I
    • 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
    • isFromBucket

      public boolean isFromBucket()
      Specified by:
      isFromBucket in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named isFromBucket Lnet/minecraft/entity/Bucketable;isFromBucket()Z
      intermediary method_6453 Lnet/minecraft/class_5761;method_6453()Z
      official p Lchy;p()Z
    • setFromBucket

      public void setFromBucket(boolean fromBucket)
      Specified by:
      setFromBucket in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named setFromBucket Lnet/minecraft/entity/Bucketable;setFromBucket(Z)V
      intermediary method_6454 Lnet/minecraft/class_5761;method_6454(Z)V
      official x Lchy;x(Z)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
    • 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
    • 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
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lbwh;b(Ldhh;)Lcfr;
    • travel

      public void travel(Vec3d movementInput)
      Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.

      See vanilla examples of custom horse vehicle and flying entities.

      Overrides:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      official a_ Lbwf;a_(Lfbx;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official d_ Lbwf;d_()V
    • interactMob

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lbwh;b(Lcpw;Lbth;)Lbti;
    • copyDataToStack

      public void copyDataToStack(ItemStack stack)
      Specified by:
      copyDataToStack in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named copyDataToStack Lnet/minecraft/entity/Bucketable;copyDataToStack(Lnet/minecraft/item/ItemStack;)V
      intermediary method_6455 Lnet/minecraft/class_5761;method_6455(Lnet/minecraft/class_1799;)V
      official i Lchy;i(Lcxo;)V
    • copyDataFromNbt

      public void copyDataFromNbt(NbtCompound nbt)
      Specified by:
      copyDataFromNbt in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named copyDataFromNbt Lnet/minecraft/entity/Bucketable;copyDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_35170 Lnet/minecraft/class_5761;method_35170(Lnet/minecraft/class_2487;)V
      official h Lchy;h(Lux;)V
    • getBucketFillSound

      public SoundEvent getBucketFillSound()
      Specified by:
      getBucketFillSound in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named getBucketFillSound Lnet/minecraft/entity/Bucketable;getBucketFillSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_35171 Lnet/minecraft/class_5761;method_35171()Lnet/minecraft/class_3414;
      official t Lchy;t()Laxe;
    • hasSelfControl

      protected boolean hasSelfControl()
      Mappings:
      Namespace Name Mixin selector
      named hasSelfControl Lnet/minecraft/entity/passive/FishEntity;hasSelfControl()Z
      intermediary method_6456 Lnet/minecraft/class_1422;method_6456()Z
      official x Lchs;x()Z
    • getFlopSound

      protected abstract SoundEvent getFlopSound()
      Mappings:
      Namespace Name Mixin selector
      named getFlopSound Lnet/minecraft/entity/passive/FishEntity;getFlopSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6457 Lnet/minecraft/class_1422;method_6457()Lnet/minecraft/class_3414;
      official go Lchs;go()Laxe;
    • getSwimSound

      protected SoundEvent getSwimSound()
      Overrides:
      getSwimSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getSwimSound Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5737 Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
      official aV Lbvj;aV()Laxe;
    • playStepSound

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