public class FallingBlockEntity extends Entity
Entity.IMoveCallback| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
fallTime |
protected static DataParameter<BlockPos> |
ORIGIN |
boolean |
shouldDropItem |
CompoundNBT |
tileEntityData |
addedToChunk, 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| コンストラクタと説明 |
|---|
FallingBlockEntity(EntityType<? extends FallingBlockEntity> p_i50218_1_,
World p_i50218_2_) |
FallingBlockEntity(World worldIn,
double x,
double y,
double z,
BlockState fallingBlockState) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canBeAttackedWithItem()
Returns true if it's possible to attack this entity with an item.
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity.
|
boolean |
canRenderOnFire()
Return whether this entity should be rendered as on fire.
|
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
void |
fillCrashReport(CrashReportCategory category) |
BlockState |
getBlockState() |
BlockPos |
getOrigin() |
World |
getWorldObj() |
boolean |
ignoreItemEntityData()
Checks if players can use this entity to access operator (permission level 2) commands either directly or
indirectly, such as give or setblock.
|
boolean |
onLivingFall(float distance,
float damageMultiplier) |
protected void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerData() |
void |
setHurtEntities(boolean hurtEntitiesIn) |
void |
setOrigin(BlockPos p_184530_1_) |
void |
tick()
Called to update the entity's position/logic.
|
protected void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, attackEntityFrom, awardKillScore, baseTick, calculateUpVector, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, 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, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, 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, getRotatedYaw, 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, hitByEntity, horizontalMag, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, 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, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, 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, setPosition, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, 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 int fallTime
public boolean shouldDropItem
public CompoundNBT tileEntityData
protected static final DataParameter<BlockPos> ORIGIN
public FallingBlockEntity(EntityType<? extends FallingBlockEntity> p_i50218_1_, World p_i50218_2_)
public FallingBlockEntity(World worldIn, double x, double y, double z, BlockState fallingBlockState)
public boolean canBeAttackedWithItem()
canBeAttackedWithItem クラス内 Entitypublic void setOrigin(BlockPos p_184530_1_)
public BlockPos getOrigin()
protected boolean canTriggerWalking()
canTriggerWalking クラス内 Entityprotected void registerData()
registerData クラス内 Entitypublic boolean canBeCollidedWith()
canBeCollidedWith クラス内 Entitypublic boolean onLivingFall(float distance,
float damageMultiplier)
onLivingFall クラス内 Entityprotected void writeAdditional(CompoundNBT compound)
writeAdditional クラス内 Entityprotected void readAdditional(CompoundNBT compound)
readAdditional クラス内 Entitypublic World getWorldObj()
public void setHurtEntities(boolean hurtEntitiesIn)
public boolean canRenderOnFire()
canRenderOnFire クラス内 Entitypublic void fillCrashReport(CrashReportCategory category)
fillCrashReport クラス内 Entitypublic BlockState getBlockState()
public boolean ignoreItemEntityData()
TileEntity.onlyOpsCanSetNbt().For example, command block minecarts and mob spawner minecarts (spawning command
block minecarts or drops) are considered accessible.
ignoreItemEntityData クラス内 Entitypublic IPacket<?> createSpawnPacket()
createSpawnPacket クラス内 Entity