net.minecraft.entity.projectile

public class FishingBobberEntity

extends ProjectileEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Ownable

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_36336
LOGGER
private final Random
syncronizedRandom
field_23231
velocityRandom
private boolean
biting
field_23232
caughtFish
private int
outOfWaterTime
field_23233
outOfOpenWaterTicks
private static final int
MAX_OUT_OF_WATER_TIME
field_30665
field_30665
private static final TrackedData<Integer>
DATA_HOOKED_ENTITY
field_7170
HOOK_ENTITY_ID
private static final TrackedData<Boolean>
DATA_BITING
field_23234
CAUGHT_FISH
private int
life
field_7167
removalTimer
private int
nibble
field_7173
hookCountdown
private int
timeUntilLured
field_7174
waitCountdown
private int
timeUntilHooked
field_7172
fishTravelCountdown
private float
fishAngle
field_7169
fishAngle
private boolean
openWater
field_23134
inOpenWater
private Entity
hookedIn
field_7165
hookedEntity
private FishingBobberEntity$State
currentState
field_7175
state
private final int
luck
field_7171
luckBonus
private final int
lureSpeed
field_7168
waitTimeReductionTicks
private final PositionInterpolator
interpolationHandler
field_60365
positionInterpolator

Constructor summary

ModifierConstructor
private (EntityType<? extends FishingBobberEntity> type, World world, int luckBonus, int waitTimeReductionTicks)
public (EntityType<? extends FishingBobberEntity> type, World level)
public (PlayerEntity thrower, World world, int luckBonus, int waitTimeReductionTicks)

Method summary

Modifier and TypeMethod
public PositionInterpolator
getInterpolation()
method_66233()
getInterpolator()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected boolean
shouldBounceOnWorldBorder()
method_62823()
deflectsAgainstWorldBorder()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public void
tick()
method_5773()
tick()
private boolean
shouldStopFishing(Player owner)
method_6959(class_1657 arg0)
removeIfInvalid(PlayerEntity player)
private void
checkCollision()
method_6958()
checkForCollision()
protected boolean
canHitEntity(Entity entity)
method_26958(class_1297 arg0)
canHit(Entity arg0)
protected void
onHitEntity(EntityHitResult hitResult)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
onHitBlock(BlockHitResult hitResult)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
private void
setHookedEntity(Entity hookedIn)
method_6951(class_1297 arg0)
updateHookedEntityId(Entity entity)
private void
catchingFish(BlockPos blockPos)
method_6949(class_2338 arg0)
tickFishingLogic(BlockPos pos)
private boolean
calculateOpenWater(BlockPos blockPos)
method_26086(class_2338 arg0)
isOpenOrWaterAround(BlockPos pos)
private FishingBobberEntity$PositionType
getOpenWaterTypeForArea(BlockPos from, BlockPos to)
method_26341(class_2338 arg0, class_2338 arg1)
getPositionType(BlockPos start, BlockPos end)
private FishingBobberEntity$PositionType
getOpenWaterTypeForBlock(BlockPos pos)
method_26342(class_2338 arg0)
getPositionType(BlockPos pos)
public boolean
isOpenWaterFishing()
method_26088()
isInOpenWater()
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public int
retrieve(ItemStack rod)
method_6957(class_1799 arg0)
use(ItemStack usedItem)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
pullEntity(Entity entity)
method_6954(class_1297 arg0)
pullHookedEntity(Entity entity)
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
public void
onClientRemoval()
method_36209()
onRemoved()
public void
setOwner(Entity owner)
method_7432(class_1297 arg0)
setOwner(Entity arg0)
private void
updateOwnerInfo(FishingHook hook)
method_36210(class_1536 arg0)
setPlayerFishHook(FishingBobberEntity fishingBobber)
public PlayerEntity
getPlayerOwner()
method_6947()
getPlayerOwner()
public Entity
getHookedIn()
method_26957()
getHookedEntity()
public boolean
canUsePortal(boolean ignorePassenger)
method_5822(boolean arg0)
canUsePortals(boolean arg0)
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry arg0)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket arg0)
private static FishingBobberEntity$PositionType
lambda$getOpenWaterTypeForArea$0(FishingHook$OpenWaterType arg0, FishingHook$OpenWaterType arg1)
method_26340(class_1536$class_4984 arg0, class_1536$class_4984 arg1)
method_26340(FishingBobberEntity$PositionType arg0, FishingBobberEntity$PositionType arg1)