Package net.minecraft.entity.decoration
Class ItemFrameEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.AbstractDecorationEntity
net.minecraft.entity.decoration.ItemFrameEntity
- All Implemented Interfaces:
class_5568,CommandOutput,Nameable
public class ItemFrameEntity extends AbstractDecorationEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private booleanfixedprivate static LoggerITEM_FRAME_LOGGERprivate static TrackedData<ItemStack>ITEM_STACKprivate floatitemDropChanceprivate static TrackedData<Integer>ROTATIONFields inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
attachmentPos, facing, PREDICATEFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description ItemFrameEntity(EntityType<? extends ItemFrameEntity> type, World world)ItemFrameEntity(World world, BlockPos pos, Direction direction) -
Method Summary
Modifier and Type Method Description voidaddVelocity(double deltaX, double deltaY, double deltaZ)booleancanStayAttached()Packet<?>createSpawnPacket()booleandamage(DamageSource source, float amount)private voiddropHeldStack(Entity entity, boolean alwaysDrop)intgetComparatorPower()protected floatgetEyeHeight(EntityPose pose, EntityDimensions dimensions)intgetHeightPixels()ItemStackgetHeldItemStack()ItemStackgetPickBlockStack()intgetRotation()floatgetTargetingMargin()intgetWidthPixels()protected voidinitDataTracker()ActionResultinteract(PlayerEntity player, Hand hand)Called when a player interacts with this entity.voidkill()class_5630method_32318(int int2)voidmove(MovementType type, Vec3d movement)voidonBreak(Entity entity)voidonPlace()voidonSpawnPacket(EntitySpawnS2CPacket packet)voidonTrackedDataSet(TrackedData<?> data)voidreadCustomDataFromTag(CompoundTag tag)private voidremoveFromFrame(ItemStack map)protected voidsetFacing(Direction facing)voidsetHeldItemStack(ItemStack stack)voidsetHeldItemStack(ItemStack value, boolean update)voidsetRotation(int value)private voidsetRotation(int value, boolean bool)booleanshouldRender(double distance)protected voidupdateAttachmentPosition()voidwriteCustomDataToTag(CompoundTag tag)Methods inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
applyMirror, applyRotation, calculateDimensions, collides, dropStack, getDecorationBlockPos, getHorizontalFacing, handleAttack, onStruckByLightning, shouldSetPositionOnLoad, tick, updatePositionMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, destroy, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lookAt, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, method_31473, method_31744, method_31746, method_31748, method_32875, method_32877, method_33189, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
ITEM_FRAME_LOGGER
-
ITEM_STACK
-
ROTATION
-
itemDropChance
private float itemDropChance -
fixed
private boolean fixed
-
-
Constructor Details
-
ItemFrameEntity
-
ItemFrameEntity
-
-
Method Details
-
getEyeHeight
- Overrides:
getEyeHeightin classEntity
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classAbstractDecorationEntity
-
setFacing
- Overrides:
setFacingin classAbstractDecorationEntity
-
updateAttachmentPosition
protected void updateAttachmentPosition()- Overrides:
updateAttachmentPositionin classAbstractDecorationEntity
-
canStayAttached
public boolean canStayAttached()- Overrides:
canStayAttachedin classAbstractDecorationEntity
-
move
- Overrides:
movein classAbstractDecorationEntity
-
addVelocity
public void addVelocity(double deltaX, double deltaY, double deltaZ)- Overrides:
addVelocityin classAbstractDecorationEntity
-
getTargetingMargin
public float getTargetingMargin()- Overrides:
getTargetingMarginin classEntity
-
kill
public void kill() -
damage
- Overrides:
damagein classAbstractDecorationEntity
-
getWidthPixels
public int getWidthPixels()- Specified by:
getWidthPixelsin classAbstractDecorationEntity
-
getHeightPixels
public int getHeightPixels()- Specified by:
getHeightPixelsin classAbstractDecorationEntity
-
shouldRender
@Environment(CLIENT) public boolean shouldRender(double distance)- Overrides:
shouldRenderin classEntity
-
onBreak
- Specified by:
onBreakin classAbstractDecorationEntity
-
onPlace
public void onPlace()- Specified by:
onPlacein classAbstractDecorationEntity
-
dropHeldStack
-
removeFromFrame
-
getHeldItemStack
-
setHeldItemStack
-
setHeldItemStack
-
method_32318
- Overrides:
method_32318in classEntity
-
onTrackedDataSet
- Overrides:
onTrackedDataSetin classEntity
-
getRotation
public int getRotation() -
setRotation
public void setRotation(int value) -
setRotation
private void setRotation(int value, boolean bool) -
writeCustomDataToTag
- Overrides:
writeCustomDataToTagin classAbstractDecorationEntity
-
readCustomDataFromTag
- Overrides:
readCustomDataFromTagin classAbstractDecorationEntity
-
interact
Called when a player interacts with this entity. -
getComparatorPower
public int getComparatorPower() -
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity
-
onSpawnPacket
- Overrides:
onSpawnPacketin classEntity
-
getPickBlockStack
- Overrides:
getPickBlockStackin classEntity
-