Class FishingBobberEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

public class FishingBobberEntity extends ProjectileEntity
Mappings:
Namespace Name
official btt
intermediary net/minecraft/class_1536
named net/minecraft/entity/projectile/FishingBobberEntity
  • Field Details

    • field_36336

      private static final org.slf4j.Logger field_36336
      Mappings:
      Namespace Name Mixin selector
      official b Lbtt;b:Lorg/slf4j/Logger;
      intermediary field_36336 Lnet/minecraft/class_1536;field_36336:Lorg/slf4j/Logger;
      named field_36336 Lnet/minecraft/entity/projectile/FishingBobberEntity;field_36336:Lorg/slf4j/Logger;
    • field_30665

      private static final int field_30665
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbtt;f:I
      intermediary field_30665 Lnet/minecraft/class_1536;field_30665:I
      named field_30665 Lnet/minecraft/entity/projectile/FishingBobberEntity;field_30665:I
    • HOOK_ENTITY_ID

      private static final TrackedData<Integer> HOOK_ENTITY_ID
      Mappings:
      Namespace Name Mixin selector
      official ao Lbtt;ao:Lzr;
      intermediary field_7170 Lnet/minecraft/class_1536;field_7170:Lnet/minecraft/class_2940;
      named HOOK_ENTITY_ID Lnet/minecraft/entity/projectile/FishingBobberEntity;HOOK_ENTITY_ID:Lnet/minecraft/entity/data/TrackedData;
    • CAUGHT_FISH

      private static final TrackedData<Boolean> CAUGHT_FISH
      Mappings:
      Namespace Name Mixin selector
      official ap Lbtt;ap:Lzr;
      intermediary field_23234 Lnet/minecraft/class_1536;field_23234:Lnet/minecraft/class_2940;
      named CAUGHT_FISH Lnet/minecraft/entity/projectile/FishingBobberEntity;CAUGHT_FISH:Lnet/minecraft/entity/data/TrackedData;
    • velocityRandom

      private final Random velocityRandom
      Mappings:
      Namespace Name Mixin selector
      official c Lbtt;c:Lalu;
      intermediary field_23231 Lnet/minecraft/class_1536;field_23231:Lnet/minecraft/class_5819;
      named velocityRandom Lnet/minecraft/entity/projectile/FishingBobberEntity;velocityRandom:Lnet/minecraft/util/math/random/Random;
    • caughtFish

      private boolean caughtFish
      Mappings:
      Namespace Name Mixin selector
      official d Lbtt;d:Z
      intermediary field_23232 Lnet/minecraft/class_1536;field_23232:Z
      named caughtFish Lnet/minecraft/entity/projectile/FishingBobberEntity;caughtFish:Z
    • outOfOpenWaterTicks

      private int outOfOpenWaterTicks
      Mappings:
      Namespace Name Mixin selector
      official e Lbtt;e:I
      intermediary field_23233 Lnet/minecraft/class_1536;field_23233:I
      named outOfOpenWaterTicks Lnet/minecraft/entity/projectile/FishingBobberEntity;outOfOpenWaterTicks:I
    • removalTimer

      private int removalTimer
      Mappings:
      Namespace Name Mixin selector
      official aq Lbtt;aq:I
      intermediary field_7167 Lnet/minecraft/class_1536;field_7167:I
      named removalTimer Lnet/minecraft/entity/projectile/FishingBobberEntity;removalTimer:I
    • hookCountdown

      private int hookCountdown
      Mappings:
      Namespace Name Mixin selector
      official ar Lbtt;ar:I
      intermediary field_7173 Lnet/minecraft/class_1536;field_7173:I
      named hookCountdown Lnet/minecraft/entity/projectile/FishingBobberEntity;hookCountdown:I
    • waitCountdown

      private int waitCountdown
      Mappings:
      Namespace Name Mixin selector
      official as Lbtt;as:I
      intermediary field_7174 Lnet/minecraft/class_1536;field_7174:I
      named waitCountdown Lnet/minecraft/entity/projectile/FishingBobberEntity;waitCountdown:I
    • fishTravelCountdown

      private int fishTravelCountdown
      Mappings:
      Namespace Name Mixin selector
      official at Lbtt;at:I
      intermediary field_7172 Lnet/minecraft/class_1536;field_7172:I
      named fishTravelCountdown Lnet/minecraft/entity/projectile/FishingBobberEntity;fishTravelCountdown:I
    • fishAngle

      private float fishAngle
      Mappings:
      Namespace Name Mixin selector
      official au Lbtt;au:F
      intermediary field_7169 Lnet/minecraft/class_1536;field_7169:F
      named fishAngle Lnet/minecraft/entity/projectile/FishingBobberEntity;fishAngle:F
    • inOpenWater

      private boolean inOpenWater
      Mappings:
      Namespace Name Mixin selector
      official av Lbtt;av:Z
      intermediary field_23134 Lnet/minecraft/class_1536;field_23134:Z
      named inOpenWater Lnet/minecraft/entity/projectile/FishingBobberEntity;inOpenWater:Z
    • hookedEntity

      @Nullable private @Nullable Entity hookedEntity
      Mappings:
      Namespace Name Mixin selector
      official aw Lbtt;aw:Lbaq;
      intermediary field_7165 Lnet/minecraft/class_1536;field_7165:Lnet/minecraft/class_1297;
      named hookedEntity Lnet/minecraft/entity/projectile/FishingBobberEntity;hookedEntity:Lnet/minecraft/entity/Entity;
    • state

      Mappings:
      Namespace Name Mixin selector
      official ax Lbtt;ax:Lbtt$a;
      intermediary field_7175 Lnet/minecraft/class_1536;field_7175:Lnet/minecraft/class_1536$class_1537;
      named state Lnet/minecraft/entity/projectile/FishingBobberEntity;state:Lnet/minecraft/entity/projectile/FishingBobberEntity$State;
    • luckOfTheSeaLevel

      private final int luckOfTheSeaLevel
      Mappings:
      Namespace Name Mixin selector
      official ay Lbtt;ay:I
      intermediary field_7171 Lnet/minecraft/class_1536;field_7171:I
      named luckOfTheSeaLevel Lnet/minecraft/entity/projectile/FishingBobberEntity;luckOfTheSeaLevel:I
    • lureLevel

      private final int lureLevel
      Mappings:
      Namespace Name Mixin selector
      official az Lbtt;az:I
      intermediary field_7168 Lnet/minecraft/class_1536;field_7168:I
      named lureLevel Lnet/minecraft/entity/projectile/FishingBobberEntity;lureLevel:I
  • Constructor Details

    • FishingBobberEntity

      private FishingBobberEntity(EntityType<? extends FishingBobberEntity> type, World world, int luckOfTheSeaLevel, int lureLevel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbtt;<init>(Lbau;Lcga;II)V
      intermediary <init> Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;II)V
      named <init> Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;II)V
    • FishingBobberEntity

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

      public FishingBobberEntity(PlayerEntity thrower, World world, int luckOfTheSeaLevel, int lureLevel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbtt;<init>(Lbtf;Lcga;II)V
      intermediary <init> Lnet/minecraft/class_1536;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;II)V
      named <init> Lnet/minecraft/entity/projectile/FishingBobberEntity;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;II)V
  • Method Details

    • initDataTracker

      protected void initDataTracker()
      Specified by:
      initDataTracker in class Entity
      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
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lzr;)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
    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate)
      Overrides:
      updateTrackedPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(DDDFFIZ)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
    • tick

      public void tick()
      Overrides:
      tick in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lbaq;k()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • removeIfInvalid

      private boolean removeIfInvalid(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtt;a(Lbtf;)Z
      intermediary method_6959 Lnet/minecraft/class_1536;method_6959(Lnet/minecraft/class_1657;)Z
      named removeIfInvalid Lnet/minecraft/entity/projectile/FishingBobberEntity;removeIfInvalid(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • checkForCollision

      private void checkForCollision()
      Mappings:
      Namespace Name Mixin selector
      official l Lbtt;l()V
      intermediary method_6958 Lnet/minecraft/class_1536;method_6958()V
      named checkForCollision Lnet/minecraft/entity/projectile/FishingBobberEntity;checkForCollision()V
    • canHit

      protected boolean canHit(Entity entity)
      Overrides:
      canHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbtx;a(Lbaq;)Z
      intermediary method_26958 Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Z
      named canHit Lnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
    • onEntityHit

      protected void onEntityHit(EntityHitResult entityHitResult)
      Overrides:
      onEntityHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbtx;a(Ldvp;)V
      intermediary method_7454 Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
      named onEntityHit Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
    • onBlockHit

      protected void onBlockHit(BlockHitResult blockHitResult)
      Overrides:
      onBlockHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbtx;a(Ldvo;)V
      intermediary method_24920 Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V
      named onBlockHit Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
    • updateHookedEntityId

      private void updateHookedEntityId(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official x Lbtt;x(Lbaq;)V
      intermediary method_6951 Lnet/minecraft/class_1536;method_6951(Lnet/minecraft/class_1297;)V
      named updateHookedEntityId Lnet/minecraft/entity/projectile/FishingBobberEntity;updateHookedEntityId(Lnet/minecraft/entity/Entity;)V
    • tickFishingLogic

      private void tickFishingLogic(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtt;a(Lgt;)V
      intermediary method_6949 Lnet/minecraft/class_1536;method_6949(Lnet/minecraft/class_2338;)V
      named tickFishingLogic Lnet/minecraft/entity/projectile/FishingBobberEntity;tickFishingLogic(Lnet/minecraft/util/math/BlockPos;)V
    • isOpenOrWaterAround

      private boolean isOpenOrWaterAround(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lbtt;b(Lgt;)Z
      intermediary method_26086 Lnet/minecraft/class_1536;method_26086(Lnet/minecraft/class_2338;)Z
      named isOpenOrWaterAround Lnet/minecraft/entity/projectile/FishingBobberEntity;isOpenOrWaterAround(Lnet/minecraft/util/math/BlockPos;)Z
    • getPositionType

      private FishingBobberEntity.PositionType getPositionType(BlockPos start, BlockPos end)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtt;a(Lgt;Lgt;)Lbtt$b;
      intermediary method_26341 Lnet/minecraft/class_1536;method_26341(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;
      named getPositionType Lnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
    • getPositionType

      private FishingBobberEntity.PositionType getPositionType(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lbtt;c(Lgt;)Lbtt$b;
      intermediary method_26342 Lnet/minecraft/class_1536;method_26342(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1536$class_4984;
      named getPositionType Lnet/minecraft/entity/projectile/FishingBobberEntity;getPositionType(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/projectile/FishingBobberEntity$PositionType;
    • isInOpenWater

      public boolean isInOpenWater()
      Mappings:
      Namespace Name Mixin selector
      official h Lbtt;h()Z
      intermediary method_26088 Lnet/minecraft/class_1536;method_26088()Z
      named isInOpenWater Lnet/minecraft/entity/projectile/FishingBobberEntity;isInOpenWater()Z
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class ProjectileEntity
      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 ProjectileEntity
      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
    • use

      public int use(ItemStack usedItem)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtt;a(Lcaa;)I
      intermediary method_6957 Lnet/minecraft/class_1536;method_6957(Lnet/minecraft/class_1799;)I
      named use Lnet/minecraft/entity/projectile/FishingBobberEntity;use(Lnet/minecraft/item/ItemStack;)I
    • handleStatus

      public void handleStatus(byte status)
      Overrides:
      handleStatus in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
    • pullHookedEntity

      protected void pullHookedEntity(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lbtt;c(Lbaq;)V
      intermediary method_6954 Lnet/minecraft/class_1536;method_6954(Lnet/minecraft/class_1297;)V
      named pullHookedEntity Lnet/minecraft/entity/projectile/FishingBobberEntity;pullHookedEntity(Lnet/minecraft/entity/Entity;)V
    • getMoveEffect

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Overrides:
      getMoveEffect in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aO Lbaq;aO()Lbaq$b;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
    • remove

      public void remove(Entity.RemovalReason reason)
      Overrides:
      remove in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lbaq$c;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
    • onRemoved

      public void onRemoved()
      Overrides:
      onRemoved in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aj Lbaq;aj()V
      intermediary method_36209 Lnet/minecraft/class_1297;method_36209()V
      named onRemoved Lnet/minecraft/entity/Entity;onRemoved()V
    • setOwner

      public void setOwner(@Nullable @Nullable Entity entity)
      Overrides:
      setOwner in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbtx;b(Lbaq;)V
      intermediary method_7432 Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)V
      named setOwner Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
    • setPlayerFishHook

      private void setPlayerFishHook(@Nullable @Nullable FishingBobberEntity fishingBobber)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtt;a(Lbtt;)V
      intermediary method_36210 Lnet/minecraft/class_1536;method_36210(Lnet/minecraft/class_1536;)V
      named setPlayerFishHook Lnet/minecraft/entity/projectile/FishingBobberEntity;setPlayerFishHook(Lnet/minecraft/entity/projectile/FishingBobberEntity;)V
    • getPlayerOwner

      @Nullable public @Nullable PlayerEntity getPlayerOwner()
      Mappings:
      Namespace Name Mixin selector
      official i Lbtt;i()Lbtf;
      intermediary method_6947 Lnet/minecraft/class_1536;method_6947()Lnet/minecraft/class_1657;
      named getPlayerOwner Lnet/minecraft/entity/projectile/FishingBobberEntity;getPlayerOwner()Lnet/minecraft/entity/player/PlayerEntity;
    • getHookedEntity

      @Nullable public @Nullable Entity getHookedEntity()
      Mappings:
      Namespace Name Mixin selector
      official j Lbtt;j()Lbaq;
      intermediary method_26957 Lnet/minecraft/class_1536;method_26957()Lnet/minecraft/class_1297;
      named getHookedEntity Lnet/minecraft/entity/projectile/FishingBobberEntity;getHookedEntity()Lnet/minecraft/entity/Entity;
    • canUsePortals

      public boolean canUsePortals()
      Overrides:
      canUsePortals in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cl Lbaq;cl()Z
      intermediary method_5822 Lnet/minecraft/class_1297;method_5822()Z
      named canUsePortals Lnet/minecraft/entity/Entity;canUsePortals()Z
    • createSpawnPacket

      public Packet<?> createSpawnPacket()
      Overrides:
      createSpawnPacket in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official S Lbaq;S()Lso;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      Overrides:
      onSpawnPacket in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lss;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V