public class EntityItemFrame extends EntityHanging
facingDirection, hangingPositionaddedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
EntityItemFrame(World worldIn) |
EntityItemFrame(World worldIn,
BlockPos p_i45852_2_,
EnumFacing p_i45852_3_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
void |
dropItemOrSelf(Entity entityIn,
boolean p_146065_2_) |
protected void |
entityInit() |
int |
getAnalogOutput() |
float |
getCollisionBorderSize() |
ItemStack |
getDisplayedItem() |
int |
getHeightPixels() |
int |
getRotation()
Return the rotation of the item currently on this frame.
|
int |
getWidthPixels() |
boolean |
isInRangeToRenderDist(double distance)
Checks if the entity is in range to render.
|
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onBroken(Entity brokenEntity)
Called when this entity is broken.
|
void |
playPlaceSound() |
boolean |
processInitialInteract(EntityPlayer player,
EnumHand hand) |
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
static void |
registerFixesItemFrame(DataFixer fixer) |
void |
setDisplayedItem(ItemStack stack) |
void |
setItemRotation(int rotationIn) |
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addVelocity, canBeCollidedWith, entityDropItem, getHangingPosition, getHorizontalFacing, getMirroredYaw, getRotatedYaw, hitByEntity, move, onStruckByLightning, onUpdate, onValidSurface, setPosition, shouldSetPosAfterLoading, updateBoundingBox, updateFacingWithBoundingBoxaddEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBePushed, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, equals, extinguish, fall, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCapability, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotationYawHead, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCapability, hasCustomName, hashCode, hasNoGravity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, performHurtAnimation, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, spawnRunningParticles, startRiding, startRiding, toString, turn, updateFallState, updatePassenger, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic EntityItemFrame(World worldIn)
public EntityItemFrame(World worldIn, BlockPos p_i45852_2_, EnumFacing p_i45852_3_)
protected void entityInit()
entityInit in class EntityHangingpublic float getCollisionBorderSize()
getCollisionBorderSize in class Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityHangingpublic int getWidthPixels()
getWidthPixels in class EntityHangingpublic int getHeightPixels()
getHeightPixels in class EntityHangingpublic boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist in class Entitypublic void onBroken(Entity brokenEntity)
onBroken in class EntityHangingpublic void playPlaceSound()
playPlaceSound in class EntityHangingpublic void dropItemOrSelf(Entity entityIn, boolean p_146065_2_)
public ItemStack getDisplayedItem()
public void setDisplayedItem(ItemStack stack)
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class Entitypublic int getRotation()
public void setItemRotation(int rotationIn)
public static void registerFixesItemFrame(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class EntityHangingpublic void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class EntityHangingpublic boolean processInitialInteract(EntityPlayer player, EnumHand hand)
processInitialInteract in class Entitypublic int getAnalogOutput()