net.minecraft.world.entity.projectile

public class FishingHook

extends Projectile

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, TraceableEntity

cpn
net.minecraft.world.entity.projectile.FishingHook
net.minecraft.class_1536
net.minecraft.entity.projectile.FishingBobberEntity
net.minecraft.world.entity.projectile.EntityFishingHook

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_36336
LOGGER
private final RandomSource
b
syncronizedRandom
field_23231
velocityRandom
private boolean
c
biting
field_23232
caughtFish
private int
d
outOfWaterTime
field_23233
outOfOpenWaterTicks
private static final int
e
MAX_OUT_OF_WATER_TIME
field_30665
field_30665
private static final EntityDataAccessor<Integer>
f
DATA_HOOKED_ENTITY
field_7170
HOOK_ENTITY_ID
private static final EntityDataAccessor<Boolean>
g
DATA_BITING
field_23234
CAUGHT_FISH
private int
h
life
field_7167
removalTimer
private int
i
nibble
field_7173
hookCountdown
private int
j
timeUntilLured
field_7174
waitCountdown
private int
k
timeUntilHooked
field_7172
fishTravelCountdown
private float
l
fishAngle
field_7169
fishAngle
private boolean
m
openWater
field_23134
inOpenWater
private Entity
n
hookedIn
field_7165
hookedEntity
private FishingHook$FishHookState
o
currentState
field_7175
state
private final int
p
luck
field_7171
luckBonus
private final int
q
lureSpeed
field_7168
waitTimeReductionTicks

Constructor summary

ModifierConstructor
private (EntityType<? extends FishingHook> type, Level world, int luckBonus, int waitTimeReductionTicks)
public (EntityType<? extends FishingHook> arg0, Level arg1)
public (Player thrower, Level world, int luckBonus, int waitTimeReductionTicks)

Method summary

Modifier and TypeMethod
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected boolean
C()
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
public void
a(ajy<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
lerpTo(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
method_5759(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
updateTrackedPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
public void
h()
tick()
method_5773()
tick()
private boolean
a(coy arg0)
shouldStopFishing(Player arg0)
method_6959(class_1657 arg0)
removeIfInvalid(PlayerEntity player)
private void
t()
checkCollision()
method_6958()
checkForCollision()
protected boolean
b(bum arg0)
canHitEntity(Entity arg0)
method_26958(class_1297 arg0)
canHit(Entity arg0)
protected void
a(fay arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
a(fax arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
private void
B(bum arg0)
setHookedEntity(Entity arg0)
method_6951(class_1297 arg0)
updateHookedEntityId(Entity entity)
private void
a(ji arg0)
catchingFish(BlockPos arg0)
method_6949(class_2338 arg0)
tickFishingLogic(BlockPos pos)
private boolean
b(ji arg0)
calculateOpenWater(BlockPos arg0)
method_26086(class_2338 arg0)
isOpenOrWaterAround(BlockPos pos)
private FishingHook$OpenWaterType
a(ji arg0, ji arg1)
getOpenWaterTypeForArea(BlockPos arg0, BlockPos arg1)
method_26341(class_2338 arg0, class_2338 arg1)
getPositionType(BlockPos start, BlockPos end)
private FishingHook$OpenWaterType
c(ji arg0)
getOpenWaterTypeForBlock(BlockPos arg0)
method_26342(class_2338 arg0)
getPositionType(BlockPos pos)
public boolean
l()
isOpenWaterFishing()
method_26088()
isInOpenWater()
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public int
a(cwq arg0)
retrieve(ItemStack arg0)
method_6957(class_1799 arg0)
use(ItemStack usedItem)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
d(bum arg0)
pullEntity(Entity arg0)
method_6954(class_1297 arg0)
pullHookedEntity(Entity entity)
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
public void
a(bum$d arg0)
remove(Entity$RemovalReason arg0)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
public void
av()
onClientRemoval()
method_36209()
onRemoved()
public void
c(bum arg0)
setOwner(Entity arg0)
method_7432(class_1297 arg0)
setOwner(Entity arg0)
private void
a(cpn arg0)
updateOwnerInfo(FishingHook arg0)
method_36210(class_1536 arg0)
setPlayerFishHook(FishingBobberEntity fishingBobber)
public Player
m()
getPlayerOwner()
method_6947()
getPlayerOwner()
public Entity
s()
getHookedIn()
method_26957()
getHookedEntity()
public boolean
o(boolean arg0)
canUsePortal(boolean arg0)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public Packet<ClientGamePacketListener>
a(arb arg0)
getAddEntityPacket(ServerEntity arg0)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
a(abm arg0)
recreateFromPacket(ClientboundAddEntityPacket arg0)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)