Package net.minecraft.src
Class EntityBoat
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityBoat
-
Field Summary
Fields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, 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 Summary
ConstructorsConstructorDescriptionEntityBoat(World par1World) EntityBoat(World par1World, double par2, double par4, double par6) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.voidbooleanReturns true if other Entities should be prevented from moving through this Entity.booleanReturns true if this entity should push and be pushed by other entities when colliding.booleancanCollideWithEntity(Entity entity) protected booleanreturns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling cropsprotected voidprotected voidfall(float fFallDistance) Called when the mob is falling.voidfunc_70270_d(boolean par1) returns the bounding box for this entitygetCollisionBox(Entity par1Entity) Returns a boundingBox used to collide the entity with other entities and blocks.floatGets the damage taken from the last hit.intGets the forward direction of the entity.doubleReturns the Y offset from the entity's position for any entity riding this one.floatintGets the time since the last hit.booleaninteractFirst(EntityPlayer par1EntityPlayer) First layer of player interactionbooleanonBlockDispenserConsume(BlockDispenserBlock blockDispenser, BlockDispenserTileEntity tileEentityDispenser) Called when block dispenser tries to eat this entity, return true if the Dispenser should stop looking for more stuff to consumevoidonUpdate()Called to update the entity's position/logic.voidSetups the entity to do the hurt animation.protected voidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetDamageTaken(float par1) Sets the damage taken from the last hit.voidsetForwardDirection(int par1) Sets the forward direction of the entity.voidsetPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) Sets the position and rotation.voidsetTimeSinceHit(int par1) Sets the time to count down from since the last time entity was hit.voidsetVelocity(double par1, double par3, double par5) Sets the velocity to the args.voidprotected voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, addVelocity, appliesConstantForceWhenRidingBoat, applyEntityCollision, attractsLightning, canAttackWithItem, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityName, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getParts, getPortalCooldown, getRotationYawHead, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isImmuneToHeadCrabDamage, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isItemEntity, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSecondaryTargetForSquid, isSneaking, isSprinting, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isValidZombieSecondaryTarget, isWet, kill, mountEntity, mountEntityRemote, moveEntity, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Constructor Details
-
EntityBoat
-
EntityBoat
-
-
Method Details
-
canTriggerWalking
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- Overrides:
canTriggerWalkingin classEntity
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
getCollisionBox
Returns a boundingBox used to collide the entity with other entities and blocks. This enables the entity to be pushable on contact, like boats or minecarts.- Overrides:
getCollisionBoxin classEntity
-
getBoundingBox
returns the bounding box for this entity- Overrides:
getBoundingBoxin classEntity
-
canBePushed
public boolean canBePushed()Returns true if this entity should push and be pushed by other entities when colliding.- Overrides:
canBePushedin classEntity
-
getMountedYOffset
public double getMountedYOffset()Returns the Y offset from the entity's position for any entity riding this one.- Overrides:
getMountedYOffsetin classEntity
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntity
-
performHurtAnimation
public void performHurtAnimation()Setups the entity to do the hurt animation. Only used by packets in multiplayer.- Overrides:
performHurtAnimationin classEntity
-
canBeCollidedWith
public boolean canBeCollidedWith()Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWithin classEntity
-
setPositionAndRotation2
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX, posY, posZ, yaw, pitch- Overrides:
setPositionAndRotation2in classEntity
-
setVelocity
public void setVelocity(double par1, double par3, double par5) Sets the velocity to the args. Args: x, y, z- Overrides:
setVelocityin classEntity
-
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
updateRiderPosition
public void updateRiderPosition()- Overrides:
updateRiderPositionin classEntity
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBTin classEntity
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBTin classEntity
-
getShadowSize
public float getShadowSize()- Overrides:
getShadowSizein classEntity
-
interactFirst
First layer of player interaction- Overrides:
interactFirstin classEntity
-
setDamageTaken
public void setDamageTaken(float par1) Sets the damage taken from the last hit. -
getDamageTaken
public float getDamageTaken()Gets the damage taken from the last hit. -
setTimeSinceHit
public void setTimeSinceHit(int par1) Sets the time to count down from since the last time entity was hit. -
getTimeSinceHit
public int getTimeSinceHit()Gets the time since the last hit. -
setForwardDirection
public void setForwardDirection(int par1) Sets the forward direction of the entity. -
getForwardDirection
public int getForwardDirection()Gets the forward direction of the entity. -
func_70270_d
public void func_70270_d(boolean par1) -
canCollideWithEntity
- Overrides:
canCollideWithEntityin classEntity
-
fall
protected void fall(float fFallDistance) Description copied from class:EntityCalled when the mob is falling. Calculates and applies fall damage. -
breakBoat
public void breakBoat() -
onBlockDispenserConsume
public boolean onBlockDispenserConsume(BlockDispenserBlock blockDispenser, BlockDispenserTileEntity tileEentityDispenser) Description copied from class:EntityCalled when block dispenser tries to eat this entity, return true if the Dispenser should stop looking for more stuff to consume- Overrides:
onBlockDispenserConsumein classEntity
-