public class EntityItemFrame extends EntityHanging
Entity.EnumEntitySize
field_146062_d, field_146063_b, field_146064_c, hangingDirection
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, 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 |
---|
EntityItemFrame(World par1World) |
EntityItemFrame(World par1World,
int par2,
int par3,
int par4,
int par5) |
Modifier and Type | Method and Description |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
protected void |
entityInit() |
void |
func_146065_b(Entity p_146065_1_,
boolean p_146065_2_) |
ItemStack |
getDisplayedItem() |
int |
getHeightPixels() |
int |
getRotation()
Return the rotation of the item currently on this frame.
|
int |
getWidthPixels() |
boolean |
interactFirst(EntityPlayer par1EntityPlayer)
First layer of player interaction
|
boolean |
isInRangeToRenderDist(double par1)
Checks if the entity is in range to render by using the past in distance and comparing it to its average edge
length * 64 * renderDistanceWeight Args: distance
|
void |
onBroken(Entity par1Entity)
Called when this entity is broken.
|
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setDisplayedItem(ItemStack par1ItemStack) |
void |
setItemRotation(int par1) |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addVelocity, canBeCollidedWith, func_145781_i, hitByEntity, moveEntity, onUpdate, onValidSurface, setDirection, shouldSetPosAfterLoading
addEntityCrashInfo, addToPlayerScore, applyEntityCollision, canAttackWithItem, canBePushed, canRenderOnFire, canRiderInteract, canTriggerWalking, 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, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, mountEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public EntityItemFrame(World par1World)
public EntityItemFrame(World par1World, int par2, int par3, int par4, int par5)
protected void entityInit()
entityInit
in class EntityHanging
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom
in class EntityHanging
public int getWidthPixels()
getWidthPixels
in class EntityHanging
public int getHeightPixels()
getHeightPixels
in class EntityHanging
public boolean isInRangeToRenderDist(double par1)
isInRangeToRenderDist
in class Entity
public void onBroken(Entity par1Entity)
onBroken
in class EntityHanging
public void func_146065_b(Entity p_146065_1_, boolean p_146065_2_)
public ItemStack getDisplayedItem()
public void setDisplayedItem(ItemStack par1ItemStack)
public int getRotation()
public void setItemRotation(int par1)
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityHanging
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityHanging
public boolean interactFirst(EntityPlayer par1EntityPlayer)
interactFirst
in class Entity