Class FishEntity

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

public abstract class FishEntity
extends WaterCreatureEntity
implements Bucketable
Mappings:
Namespace Name
official bbg
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 Lbbg;b:Lvk;
      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> Laqv;<init>(Laqz;Lbtv;)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 Lari;b(Lart;Laqw;)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 m Lbbg;m()Lash$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 N Larj;N()Z
      intermediary method_17326 Lnet/minecraft/class_1308;method_17326()Z
      named cannotDespawn Lnet/minecraft/entity/mob/MobEntity;cannotDespawn()Z
    • canSpawn

      public static boolean canSpawn​(EntityType<? extends FishEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official b Lbbg;b(Laqz;Lbtw;Larl;Lfx;Ljava/util/Random;)Z
      intermediary method_20662 Lnet/minecraft/class_1422;method_20662(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named canSpawn Lnet/minecraft/entity/passive/FishEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn​(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official h Larj;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 eR Larj;eR()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 e Laqv;e()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • isFromBucket

      public boolean isFromBucket()
      Mappings:
      Namespace Name Mixin selector
      official o Lbbg;o()Z
      intermediary method_6453 Lnet/minecraft/class_1422;method_6453()Z
      named isFromBucket Lnet/minecraft/entity/passive/FishEntity;isFromBucket()Z
    • setFromBucket

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

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u Larj;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 Larj;a(Lbtv;)Lazl;
      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)
      Overrides:
      travel in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official h Lari;h(Ldiu;)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 k Lari;k()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 Larj;b(Lbhl;Lapp;)Lapq;
      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

      protected void copyDataToStack​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official k Lbbg;k(Lbnv;)V
      intermediary method_6455 Lnet/minecraft/class_1422;method_6455(Lnet/minecraft/class_1799;)V
      named copyDataToStack Lnet/minecraft/entity/passive/FishEntity;copyDataToStack(Lnet/minecraft/item/ItemStack;)V
    • getFishBucketItem

      protected abstract ItemStack getFishBucketItem()
      Mappings:
      Namespace Name Mixin selector
      official r Lbbg;r()Lbnv;
      intermediary method_6452 Lnet/minecraft/class_1422;method_6452()Lnet/minecraft/class_1799;
      named getFishBucketItem Lnet/minecraft/entity/passive/FishEntity;getFishBucketItem()Lnet/minecraft/item/ItemStack;
    • hasSelfControl

      protected boolean hasSelfControl()
      Mappings:
      Namespace Name Mixin selector
      official fl Lbbg;fl()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 fm Lbbg;fm()Laef;
      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 aw Laqv;aw()Laef;
      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 Laqv;b(Lfx;Lcht;)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