Package net.minecraft.src
Class EntityHanging
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityHanging
- Direct Known Subclasses:
EntityItemFrame,EntityLeashKnot,EntityPainting
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionEntityHanging(World par1World) EntityHanging(World par1World, int par2, int par3, int par4, int par5) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVelocity(double par1, double par3, double par5) Adds to the current velocity of the entity.booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleanReturns true if other Entities should be prevented from moving through this Entity.protected voidabstract intabstract intbooleanhitByEntity(Entity par1Entity) Called when a player attacks an entity.voidmoveEntity(double par1, double par3, double par5) Tries to moves the entity by the passed in displacement.abstract voidCalled when this entity is broken.voidonUpdate()Called to update the entity's position/logic.booleanchecks to make sure painting can be placed therevoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidsetDirection(int par1) protected booleanprotected booleanvoidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityCollision, attractsLightning, canAttackWithItem, canBePushed, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, canTriggerWalking, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getAnimalKickMovementMultiplier, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCanBeHeadCrabbed, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityName, getEntityString, getEyeHeight, getFlag, getHeadCrabSharedAttackTarget, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPortalCooldown, getRotationYawHead, getShadowSize, getTeleportDirection, getTranslatedEntityName, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, initComponents, interactFirst, 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, moveFlying, movementModifierWhenRidingBoat, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onKillEntity, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, readFromNBT, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldExplodeBlock, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
hangingDirection
public int hangingDirection -
xPosition
public int xPosition -
yPosition
public int yPosition -
zPosition
public int zPosition
-
-
Constructor Details
-
EntityHanging
-
EntityHanging
-
-
Method Details
-
entityInit
protected void entityInit()- Specified by:
entityInitin classEntity
-
setDirection
public void setDirection(int par1) -
onUpdate
public void onUpdate()Called to update the entity's position/logic. -
onValidSurface
public boolean onValidSurface()checks to make sure painting can be placed there -
canBeCollidedWith
public boolean canBeCollidedWith()Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWithin classEntity
-
hitByEntity
Called when a player attacks an entity. If this returns true the attack will not happen.- Overrides:
hitByEntityin classEntity
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntity
-
moveEntity
public void moveEntity(double par1, double par3, double par5) Tries to moves the entity by the passed in displacement. Args: x, y, z- Overrides:
moveEntityin classEntity
-
addVelocity
public void addVelocity(double par1, double par3, double par5) Adds to the current velocity of the entity. Args: x, y, z- Overrides:
addVelocityin 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
-
getWidthPixels
public abstract int getWidthPixels() -
getHeightPixels
public abstract int getHeightPixels() -
onBroken
Called when this entity is broken. Entity parameter may be null. -
shouldSetPosAfterLoading
protected boolean shouldSetPosAfterLoading()- Overrides:
shouldSetPosAfterLoadingin classEntity
-
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Overrides:
shouldSetPositionOnLoadin classEntity
-