public class EntityBoat extends Entity
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize
Constructor and Description |
---|
EntityBoat(World par1World) |
EntityBoat(World par1World,
double par2,
double par4,
double par6) |
Modifier and Type | Method and Description |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2)
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.
|
void |
func_70270_d(boolean par1) |
AxisAlignedBB |
getBoundingBox()
returns the bounding box for this entity
|
AxisAlignedBB |
getCollisionBox(Entity par1Entity)
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 par1EntityPlayer)
First layer of player interaction
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
performHurtAnimation() |
void |
setDamageTaken(float par1)
Sets the damage taken from the last hit.
|
void |
setForwardDirection(int par1)
Sets the forward direction of the entity.
|
void |
setPositionAndRotation2(double par1,
double par3,
double par5,
float par7,
float par8,
int par9) |
void |
setTimeSinceHit(int par1)
Sets the time to count down from since the last time entity was hit.
|
void |
setVelocity(double par1,
double par3,
double par5) |
void |
updateRiderPosition() |
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBlockExplosionResistance, getBrightness, getBrightnessForRender, getCollisionBorderSize, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityName, getExtendedProperties, getEyeHeight, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTranslatedEntityName, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveEntity, moveFlying, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, playSound, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setCurrentItemOrArmor, setDead, setEating, setFire, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setRotationYawHead, setSneaking, setSprinting, setWorld, shouldDismountInWater, shouldExplodeBlock, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, updateRidden, writeMountToNBT, writeToNBT, writeToNBTOptional
public EntityBoat(World par1World)
public EntityBoat(World par1World, double par2, double par4, double par6)
public AxisAlignedBB getCollisionBox(Entity par1Entity)
getCollisionBox
in class Entity
public AxisAlignedBB getBoundingBox()
getBoundingBox
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
public double getMountedYOffset()
getMountedYOffset
in class Entity
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom
in class Entity
public void performHurtAnimation()
performHurtAnimation
in class Entity
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9)
setPositionAndRotation2
in class Entity
public void setVelocity(double par1, double par3, double par5)
setVelocity
in class Entity
public void onUpdate()
public void updateRiderPosition()
updateRiderPosition
in class Entity
public float getShadowSize()
getShadowSize
in class Entity
public boolean interactFirst(EntityPlayer par1EntityPlayer)
interactFirst
in class Entity
public void setDamageTaken(float par1)
public float getDamageTaken()
public void setTimeSinceHit(int par1)
public int getTimeSinceHit()
public void setForwardDirection(int par1)
public int getForwardDirection()
public void func_70270_d(boolean par1)