Class FishEntity

All Implemented Interfaces:
Bucketable, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
PufferfishEntity, SchoolingFishEntity, TadpoleEntity

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

    • FROM_BUCKET

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

    • FishEntity

      public FishEntity(EntityType<? extends FishEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaq;<init>(Lbau;Lcga;)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

    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbbf;b(Lbbr;Lbar;)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
    • createFishAttributes

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

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

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

      public int getLimitPerChunk()
      Overrides:
      getLimitPerChunk in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official fp Lbbh;fp()I
      intermediary method_5945 Lnet/minecraft/class_1308;method_5945()I
      named getLimitPerChunk Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
    • initDataTracker

      protected void initDataTracker()
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbaq;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • isFromBucket

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

      public void setFromBucket(boolean fromBucket)
      Specified by:
      setFromBucket in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      official v Lbmj;v(Z)V
      intermediary method_6454 Lnet/minecraft/class_5761;method_6454(Z)V
      named setFromBucket Lnet/minecraft/entity/Bucketable;setFromBucket(Z)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(Lpj;)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)
      Overrides:
      readCustomDataFromNbt in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lpj;)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
    • initGoals

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

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbh;a(Lcga;)Lbkf;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
    • 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
      official g Lbbf;g(Ldvt;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
    • tickMovement

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

      protected ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbbh;b(Lbtf;Lazl;)Lazm;
      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;
    • copyDataToStack

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

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

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

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

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

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

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(Lgt;Lcur;)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