Package net.minecraft.entity.item
Class ItemFrameEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.item.HangingEntity
net.minecraft.entity.item.ItemFrameEntity
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DataParameter<ItemStack>
private static final DataParameter<Integer>
private float
private boolean
private static final org.apache.logging.log4j.Logger
Fields inherited from class net.minecraft.entity.item.HangingEntity
direction, HANGING_ENTITY, pos
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ConstructorDescriptionItemFrameEntity
(EntityType<? extends ItemFrameEntity> p_i50224_1_, World p_i50224_2_) ItemFrameEntity
(World p_i45852_1_, BlockPos p_i45852_2_, Direction p_i45852_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_213281_1_) protected void
void
private void
IPacket<?>
int
protected float
getEyeHeight
(Pose p_213316_1_, EntitySize p_213316_2_) int
getItem()
float
int
int
getWidth()
boolean
hurt
(DamageSource p_70097_1_, float p_70097_2_) interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) void
kill()
void
void
onSyncedDataUpdated
(DataParameter<?> p_184206_1_) void
void
push
(double p_70024_1_, double p_70024_3_, double p_70024_5_) void
readAdditionalSaveData
(CompoundNBT p_70037_1_) protected void
private void
removeFramedMap
(ItemStack p_110131_1_) protected void
setDirection
(Direction p_174859_1_) void
void
void
setRotation
(int p_82336_1_) private void
setRotation
(int p_174865_1_, boolean p_174865_2_) boolean
boolean
shouldRenderAtSqrDistance
(double p_70112_1_) boolean
survives()
Methods inherited from class net.minecraft.entity.item.HangingEntity
getDirection, getPos, isPickable, mirror, refreshDimensions, repositionEntityAfterLoad, rotate, setPos, skipAttackInteraction, spawnAtLocation, thunderHit, tick
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, killed, lavaHurt, lerpHeadTo, lerpMotion, lerpTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldShowName, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DATA_ITEM
-
DATA_ROTATION
-
dropChance
private float dropChance -
fixed
private boolean fixed
-
-
Constructor Details
-
ItemFrameEntity
-
ItemFrameEntity
-
-
Method Details
-
getEyeHeight
- Overrides:
getEyeHeight
in classEntity
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classHangingEntity
-
setDirection
- Overrides:
setDirection
in classHangingEntity
-
recalculateBoundingBox
protected void recalculateBoundingBox()- Overrides:
recalculateBoundingBox
in classHangingEntity
-
survives
public boolean survives()- Overrides:
survives
in classHangingEntity
-
move
- Overrides:
move
in classHangingEntity
-
push
public void push(double p_70024_1_, double p_70024_3_, double p_70024_5_) - Overrides:
push
in classHangingEntity
-
getPickRadius
public float getPickRadius()- Overrides:
getPickRadius
in classEntity
-
kill
public void kill() -
hurt
- Overrides:
hurt
in classHangingEntity
-
getWidth
public int getWidth()- Specified by:
getWidth
in classHangingEntity
-
getHeight
public int getHeight()- Specified by:
getHeight
in classHangingEntity
-
shouldRenderAtSqrDistance
public boolean shouldRenderAtSqrDistance(double p_70112_1_) - Overrides:
shouldRenderAtSqrDistance
in classEntity
-
dropItem
- Specified by:
dropItem
in classHangingEntity
-
playPlacementSound
public void playPlacementSound()- Specified by:
playPlacementSound
in classHangingEntity
-
dropItem
-
removeFramedMap
-
getItem
-
setItem
-
setItem
-
setSlot
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdated
in classEntity
-
getRotation
public int getRotation() -
setRotation
public void setRotation(int p_82336_1_) -
setRotation
private void setRotation(int p_174865_1_, boolean p_174865_2_) -
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classHangingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classHangingEntity
-
interact
-
getAnalogOutput
public int getAnalogOutput() -
getAddEntityPacket
- Specified by:
getAddEntityPacket
in classEntity
-