public class EntityFishHook extends Entity
Modifier and Type | Field and Description |
---|---|
EntityPlayer |
angler |
Entity |
caughtEntity |
private double |
clientMotionX |
private double |
clientMotionY |
private double |
clientMotionZ |
private static java.util.List<WeightedRandomFishable> |
FISH |
private float |
fishApproachAngle |
private double |
fishPitch |
private int |
fishPosRotationIncrements |
private double |
fishX |
private double |
fishY |
private double |
fishYaw |
private double |
fishZ |
private boolean |
inGround |
private Block |
inTile |
private static java.util.List<WeightedRandomFishable> |
JUNK |
int |
shake |
private int |
ticksCatchable |
private int |
ticksCatchableDelay |
private int |
ticksCaughtDelay |
private int |
ticksInAir |
private int |
ticksInGround |
private static java.util.List<WeightedRandomFishable> |
TREASURE |
private int |
xTile |
private int |
yTile |
private int |
zTile |
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityFishHook(World worldIn) |
EntityFishHook(World worldIn,
double x,
double y,
double z,
EntityPlayer anglerIn) |
EntityFishHook(World worldIn,
EntityPlayer fishingPlayer) |
Modifier and Type | Method and Description |
---|---|
protected void |
entityInit() |
static java.util.List<WeightedRandomFishable> |
func_174855_j() |
private ItemStack |
getFishingResult() |
void |
handleHookCasting(double p_146035_1_,
double p_146035_3_,
double p_146035_5_,
float p_146035_7_,
float p_146035_8_) |
int |
handleHookRetraction() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render by using the past in distance and comparing it to its average edge
length * 64 * renderDistanceWeight Args: distance
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setDead()
Will get destroyed next tick.
|
void |
setPositionAndRotation2(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean p_180426_10_) |
void |
setVelocity(double x,
double y,
double z)
Sets the velocity to the args.
|
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, attackEntityFrom, canAttackWithItem, canBeCollidedWith, canBePushed, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, func_174817_o, func_181012_aH, func_181013_g, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, interactFirst, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, replaceItemInInventory, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCurrentItemOrArmor, setCustomNameTag, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateFallState, updateRidden, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
private static final java.util.List<WeightedRandomFishable> JUNK
private static final java.util.List<WeightedRandomFishable> TREASURE
private static final java.util.List<WeightedRandomFishable> FISH
private int xTile
private int yTile
private int zTile
private Block inTile
private boolean inGround
public int shake
public EntityPlayer angler
private int ticksInGround
private int ticksInAir
private int ticksCatchable
private int ticksCaughtDelay
private int ticksCatchableDelay
private float fishApproachAngle
public Entity caughtEntity
private int fishPosRotationIncrements
private double fishX
private double fishY
private double fishZ
private double fishYaw
private double fishPitch
private double clientMotionX
private double clientMotionY
private double clientMotionZ
public EntityFishHook(World worldIn)
public EntityFishHook(World worldIn, double x, double y, double z, EntityPlayer anglerIn)
public EntityFishHook(World worldIn, EntityPlayer fishingPlayer)
public static java.util.List<WeightedRandomFishable> func_174855_j()
protected void entityInit()
entityInit
in class Entity
public boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist
in class Entity
public void handleHookCasting(double p_146035_1_, double p_146035_3_, double p_146035_5_, float p_146035_7_, float p_146035_8_)
public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean p_180426_10_)
setPositionAndRotation2
in class Entity
public void setVelocity(double x, double y, double z)
setVelocity
in class Entity
public void onUpdate()
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class Entity
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class Entity
public int handleHookRetraction()
private ItemStack getFishingResult()