public class ItemFrameEntity extends HangingEntity
Entity.IMoveCallbackfacingDirection, hangingPosition, IS_HANGING_ENTITYaddedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| コンストラクタと説明 |
|---|
ItemFrameEntity(EntityType<? extends ItemFrameEntity> p_i50224_1_,
World p_i50224_2_) |
ItemFrameEntity(World worldIn,
BlockPos p_i45852_2_,
Direction p_i45852_3_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
IPacket<?> |
createSpawnPacket() |
int |
getAnalogOutput() |
float |
getCollisionBorderSize() |
ItemStack |
getDisplayedItem() |
protected float |
getEyeHeight(Pose poseIn,
EntitySize sizeIn) |
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 |
onKillCommand()
Called by the /kill command.
|
boolean |
onValidSurface()
checks to make sure painting can be placed there
|
void |
playPlaceSound() |
boolean |
processInitialInteract(PlayerEntity player,
Hand hand) |
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerData() |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
setDisplayedItem(ItemStack stack) |
void |
setDisplayedItemWithUpdate(ItemStack stack,
boolean p_174864_2_) |
void |
setItemRotation(int rotationIn) |
protected void |
updateBoundingBox()
Updates the entity bounding box based on current facing
|
protected void |
updateFacingWithBoundingBox(Direction facingDirectionIn)
Updates facing and bounding box based on it
|
void |
writeAdditional(CompoundNBT compound) |
addVelocity, canBeCollidedWith, entityDropItem, getHangingPosition, getHorizontalFacing, getMirroredYaw, getRotatedYaw, hitByEntity, move, onStruckByLightning, recalculateSize, setPosition, shouldSetPosAfterLoading, tickaddPassenger, addTag, addTrackingPlayer, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, baseTick, calculateUpVector, canBeAttackedWithItem, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onLivingFall, onRemovedFromWorld, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapscanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapability, getCapabilitypublic ItemFrameEntity(EntityType<? extends ItemFrameEntity> p_i50224_1_, World p_i50224_2_)
protected float getEyeHeight(Pose poseIn, EntitySize sizeIn)
getEyeHeight クラス内 Entityprotected void registerData()
registerData クラス内 HangingEntityprotected void updateFacingWithBoundingBox(Direction facingDirectionIn)
updateFacingWithBoundingBox クラス内 HangingEntityprotected void updateBoundingBox()
updateBoundingBox クラス内 HangingEntitypublic boolean onValidSurface()
onValidSurface クラス内 HangingEntitypublic float getCollisionBorderSize()
getCollisionBorderSize クラス内 Entitypublic void onKillCommand()
onKillCommand クラス内 Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom クラス内 HangingEntitypublic int getWidthPixels()
getWidthPixels クラス内 HangingEntitypublic int getHeightPixels()
getHeightPixels クラス内 HangingEntitypublic boolean isInRangeToRenderDist(double distance)
isInRangeToRenderDist クラス内 Entitypublic void onBroken(@Nullable
Entity brokenEntity)
onBroken クラス内 HangingEntitypublic void playPlaceSound()
playPlaceSound クラス内 HangingEntitypublic ItemStack getDisplayedItem()
public void setDisplayedItem(ItemStack stack)
public void setDisplayedItemWithUpdate(ItemStack stack, boolean p_174864_2_)
public boolean replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn)
replaceItemInInventory クラス内 Entitypublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange クラス内 Entitypublic int getRotation()
public void setItemRotation(int rotationIn)
public void writeAdditional(CompoundNBT compound)
writeAdditional クラス内 HangingEntitypublic void readAdditional(CompoundNBT compound)
readAdditional クラス内 HangingEntitypublic boolean processInitialInteract(PlayerEntity player, Hand hand)
processInitialInteract クラス内 Entitypublic int getAnalogOutput()
public IPacket<?> createSpawnPacket()
createSpawnPacket クラス内 Entity