public abstract class EntityHanging extends Entity
| Modifier and Type | Field and Description |
|---|---|
int |
hangingDirection |
int |
xPosition |
int |
yPosition |
int |
zPosition |
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_98038_p, fireResistance, 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, skinUrl, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityHanging(World par1World) |
EntityHanging(World par1World,
int par2,
int par3,
int par4,
int par5) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVelocity(double par1,
double par3,
double par5)
Adds to the current velocity of the entity.
|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked.
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
abstract void |
dropItemStack()
Drop the item currently on this item frame.
|
abstract int |
func_82329_d() |
abstract int |
func_82330_g() |
boolean |
func_85031_j(Entity par1Entity) |
void |
moveEntity(double par1,
double par3,
double par5)
Tries to moves the entity by the passed in displacement.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
boolean |
onValidSurface()
checks to make sure painting can be placed there
|
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setDirection(int par1) |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addEntityID, addNotRiddenEntityID, addToPlayerScore, applyEntityCollision, canAttackWithItem, canBePushed, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_82143_as, func_82146_a, func_82149_j, func_85029_a, func_96091_a, func_96092_aw, func_98034_c, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityName, getExtendedProperties, getEyeHeight, getLastActiveItems, getLookVec, getMaxInPortalTime, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getShadowSize, getTeleportDirection, getTexture, getTranslatedEntityName, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, mountEntity, moveFlying, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setCurrentItemOrArmor, setDead, setEating, setFire, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotationYawHead, setSneaking, setSprinting, setVelocity, setWorld, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, unmountEntity, updateCloak, updateRidden, updateRiderPosition, writeToNBTpublic int hangingDirection
public int xPosition
public int yPosition
public int zPosition
public EntityHanging(World par1World)
public EntityHanging(World par1World, int par2, int par3, int par4, int par5)
public void setDirection(int par1)
public void onUpdate()
public boolean onValidSurface()
public boolean canBeCollidedWith()
canBeCollidedWith in class Entitypublic boolean func_85031_j(Entity par1Entity)
func_85031_j in class Entitypublic boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom in class Entitypublic void moveEntity(double par1,
double par3,
double par5)
moveEntity in class Entitypublic void addVelocity(double par1,
double par3,
double par5)
addVelocity in class Entitypublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
public abstract int func_82329_d()
public abstract int func_82330_g()
public abstract void dropItemStack()