public class EntityBoat extends Entity
Entity.EnumEntitySizeaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityBoat(World p_i1704_1_) |
EntityBoat(World p_i1705_1_,
double p_i1705_2_,
double p_i1705_4_,
double p_i1705_6_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_)
Called when the entity is attacked.
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding.
|
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
prevent them from trampling crops
|
protected void |
entityInit() |
AxisAlignedBB |
getBoundingBox()
returns the bounding box for this entity
|
AxisAlignedBB |
getCollisionBox(Entity p_70114_1_)
Returns a boundingBox used to collide the entity with other entities and blocks.
|
float |
getDamageTaken()
Gets the damage taken from the last hit.
|
int |
getForwardDirection()
Gets the forward direction of the entity.
|
double |
getMountedYOffset()
Returns the Y offset from the entity's position for any entity riding this one.
|
float |
getShadowSize() |
int |
getTimeSinceHit()
Gets the time since the last hit.
|
boolean |
interactFirst(EntityPlayer p_130002_1_)
First layer of player interaction
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
performHurtAnimation()
Setups the entity to do the hurt animation.
|
protected void |
readEntityFromNBT(NBTTagCompound p_70037_1_)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setDamageTaken(float p_70266_1_)
Sets the damage taken from the last hit.
|
void |
setForwardDirection(int p_70269_1_)
Sets the forward direction of the entity.
|
void |
setIsBoatEmpty(boolean p_70270_1_)
true if no player in boat
|
void |
setPositionAndRotation2(double p_70056_1_,
double p_70056_3_,
double p_70056_5_,
float p_70056_7_,
float p_70056_8_,
int p_70056_9_)
Sets the position and rotation.
|
void |
setTimeSinceHit(int p_70265_1_)
Sets the time to count down from since the last time entity was hit.
|
void |
setVelocity(double p_70016_1_,
double p_70016_3_,
double p_70016_5_)
Sets the velocity to the args.
|
protected void |
updateFallState(double p_70064_1_,
boolean p_70064_3_)
Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance
and deal fall damage if landing on the ground.
|
void |
updateRiderPosition() |
protected void |
writeEntityToNBT(NBTTagCompound p_70014_1_)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, fall, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, travelToDimension, updateRidden, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic EntityBoat(World p_i1704_1_)
public EntityBoat(World p_i1705_1_, double p_i1705_2_, double p_i1705_4_, double p_i1705_6_)
protected boolean canTriggerWalking()
canTriggerWalking in class Entityprotected void entityInit()
entityInit in class Entitypublic AxisAlignedBB getCollisionBox(Entity p_70114_1_)
getCollisionBox in class Entitypublic AxisAlignedBB getBoundingBox()
getBoundingBox in class Entitypublic boolean canBePushed()
canBePushed in class Entitypublic double getMountedYOffset()
getMountedYOffset in class Entitypublic boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom in class Entitypublic void performHurtAnimation()
performHurtAnimation in class Entitypublic boolean canBeCollidedWith()
canBeCollidedWith in class Entitypublic void setPositionAndRotation2(double p_70056_1_,
double p_70056_3_,
double p_70056_5_,
float p_70056_7_,
float p_70056_8_,
int p_70056_9_)
setPositionAndRotation2 in class Entitypublic void setVelocity(double p_70016_1_,
double p_70016_3_,
double p_70016_5_)
setVelocity in class Entitypublic void onUpdate()
public void updateRiderPosition()
updateRiderPosition in class Entityprotected void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT in class Entityprotected void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT in class Entitypublic float getShadowSize()
getShadowSize in class Entitypublic boolean interactFirst(EntityPlayer p_130002_1_)
interactFirst in class Entityprotected void updateFallState(double p_70064_1_,
boolean p_70064_3_)
updateFallState in class Entitypublic void setDamageTaken(float p_70266_1_)
public float getDamageTaken()
public void setTimeSinceHit(int p_70265_1_)
public int getTimeSinceHit()
public void setForwardDirection(int p_70269_1_)
public int getForwardDirection()
public void setIsBoatEmpty(boolean p_70270_1_)