public class FishingBobberEntity extends Entity
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
FishingBobberEntity.State |
Entity.IMoveCallback| Modifier and Type | Field and Description |
|---|---|
private PlayerEntity |
angler |
Entity |
caughtEntity |
private FishingBobberEntity.State |
currentState |
private static DataParameter<java.lang.Integer> |
DATA_HOOKED_ENTITY |
private float |
fishApproachAngle |
private boolean |
inGround |
private int |
luck |
private int |
lureSpeed |
private int |
ticksCatchable |
private int |
ticksCatchableDelay |
private int |
ticksCaughtDelay |
private int |
ticksInAir |
private int |
ticksInGround |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| Modifier | Constructor and Description |
|---|---|
|
FishingBobberEntity(PlayerEntity p_i50220_1_,
World p_i50220_2_,
int p_i50220_3_,
int p_i50220_4_) |
|
FishingBobberEntity(World worldIn,
PlayerEntity p_i47290_2_,
double x,
double y,
double z) |
private |
FishingBobberEntity(World p_i50219_1_,
PlayerEntity p_i50219_2_,
int p_i50219_3_,
int p_i50219_4_) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bringInHookedEntity() |
protected boolean |
canTriggerWalking() |
private void |
catchingFish(BlockPos p_190621_1_) |
private void |
checkCollision() |
IPacket<?> |
createSpawnPacket() |
PlayerEntity |
getAngler() |
int |
handleHookRetraction(ItemStack p_146034_1_) |
void |
handleStatusUpdate(byte id) |
boolean |
isInRangeToRenderDist(double distance) |
boolean |
isNonBoss() |
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerData() |
void |
remove(boolean keepData) |
private void |
setHookedEntity() |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
private boolean |
shouldStopFishing() |
void |
tick() |
private void |
updateRotation() |
void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, attackEntityFrom, awardKillScore, baseTick, calculateUpVector, canBeAttackedWithItem, canBeCollidedWith, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getSelfAndPassengers, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, maybeBackOffFromEdge, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, positionRider, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapability, getCapabilityprivate static final DataParameter<java.lang.Integer> DATA_HOOKED_ENTITY
private boolean inGround
private int ticksInGround
private final PlayerEntity angler
private int ticksInAir
private int ticksCatchable
private int ticksCaughtDelay
private int ticksCatchableDelay
private float fishApproachAngle
public Entity caughtEntity
private FishingBobberEntity.State currentState
private final int luck
private final int lureSpeed
private FishingBobberEntity(World p_i50219_1_, PlayerEntity p_i50219_2_, int p_i50219_3_, int p_i50219_4_)
public FishingBobberEntity(World worldIn, PlayerEntity p_i47290_2_, double x, double y, double z)
public FishingBobberEntity(PlayerEntity p_i50220_1_, World p_i50220_2_, int p_i50220_3_, int p_i50220_4_)
protected void registerData()
registerData in class Entitypublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class Entitypublic boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist in class Entitypublic void setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
setPositionAndRotationDirect in class Entityprivate boolean shouldStopFishing()
private void updateRotation()
private void checkCollision()
private void setHookedEntity()
private void catchingFish(BlockPos p_190621_1_)
public void writeAdditional(CompoundNBT compound)
writeAdditional in class Entitypublic void readAdditional(CompoundNBT compound)
readAdditional in class Entitypublic int handleHookRetraction(ItemStack p_146034_1_)
public void handleStatusUpdate(byte id)
handleStatusUpdate in class Entityprotected void bringInHookedEntity()
protected boolean canTriggerWalking()
canTriggerWalking in class Entity@Nullable public PlayerEntity getAngler()
public IPacket<?> createSpawnPacket()
createSpawnPacket in class Entity