Class FallingBlockEntity
- All Implemented Interfaces:
DataTracked
,ScoreHolder
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/FallingBlockEntity
intermediary net/minecraft/class_1540
official clz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate BlockState
protected static final TrackedData
<BlockPos> private boolean
boolean
private float
private int
private boolean
private static final Logger
boolean
int
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ModifierConstructorDescriptionFallingBlockEntity
(EntityType<? extends FallingBlockEntity> type, World world) private
FallingBlockEntity
(World world, double x, double y, double z, BlockState block) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.createSpawnPacket
(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.final boolean
damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.boolean
Returns whether an entity should render as being on fire.boolean
Returns whetherEntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.component.type.NbtComponent)
should reject entity NBTs unless called by an operator.protected Text
Returns the default name of the entity.protected double
protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.boolean
handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.boolean
Returns whether the entity can be attacked by players.void
onDestroyedOnLanding
(Block block, BlockPos pos) void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
populateCrashReport
(CrashReportSection section) Populates the crash report section to include the entity's information.protected void
Reads custom data fromnbt
.void
void
void
setHurtEntities
(float fallHurtAmount, int fallHurtMax) static FallingBlockEntity
spawnFromBlock
(World world, BlockPos pos, BlockState state) Spawns a falling block entity atpos
from the blockstate
.teleportTo
(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.void
tick()
Ticks this entity.protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, changeLookDirection, checkDespawn, checkWaterState, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, detach, discard, dismountVehicle, distanceTo, doesNotCollide, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, positionInPortal, pushAwayFrom, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetLerp, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickBlockCollision, tickBlockCollision, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/FallingBlockEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_36333
Lnet/minecraft/class_1540;field_36333:Lorg/slf4j/Logger;
official f
Lclz;f:Lorg/slf4j/Logger;
-
BLOCK_POS
- Mappings:
Namespace Name Mixin selector named BLOCK_POS
Lnet/minecraft/entity/FallingBlockEntity;BLOCK_POS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7195
Lnet/minecraft/class_1540;field_7195:Lnet/minecraft/class_2940;
official e
Lclz;e:Lalc;
-
block
- Mappings:
Namespace Name Mixin selector named block
Lnet/minecraft/entity/FallingBlockEntity;block:Lnet/minecraft/block/BlockState;
intermediary field_7188
Lnet/minecraft/class_1540;field_7188:Lnet/minecraft/class_2680;
official g
Lclz;g:Ldxu;
-
timeFalling
public int timeFalling- Mappings:
Namespace Name Mixin selector named timeFalling
Lnet/minecraft/entity/FallingBlockEntity;timeFalling:I
intermediary field_7192
Lnet/minecraft/class_1540;field_7192:I
official a
Lclz;a:I
-
dropItem
public boolean dropItem- Mappings:
Namespace Name Mixin selector named dropItem
Lnet/minecraft/entity/FallingBlockEntity;dropItem:Z
intermediary field_7193
Lnet/minecraft/class_1540;field_7193:Z
official b
Lclz;b:Z
-
destroyedOnLanding
private boolean destroyedOnLanding- Mappings:
Namespace Name Mixin selector named destroyedOnLanding
Lnet/minecraft/entity/FallingBlockEntity;destroyedOnLanding:Z
intermediary field_7189
Lnet/minecraft/class_1540;field_7189:Z
official h
Lclz;h:Z
-
hurtEntities
private boolean hurtEntities- Mappings:
Namespace Name Mixin selector named hurtEntities
Lnet/minecraft/entity/FallingBlockEntity;hurtEntities:Z
intermediary field_7191
Lnet/minecraft/class_1540;field_7191:Z
official i
Lclz;i:Z
-
fallHurtMax
private int fallHurtMax- Mappings:
Namespace Name Mixin selector named fallHurtMax
Lnet/minecraft/entity/FallingBlockEntity;fallHurtMax:I
intermediary field_7190
Lnet/minecraft/class_1540;field_7190:I
official j
Lclz;j:I
-
fallHurtAmount
private float fallHurtAmount- Mappings:
Namespace Name Mixin selector named fallHurtAmount
Lnet/minecraft/entity/FallingBlockEntity;fallHurtAmount:F
intermediary field_7187
Lnet/minecraft/class_1540;field_7187:F
official k
Lclz;k:F
-
blockEntityData
- Mappings:
Namespace Name Mixin selector named blockEntityData
Lnet/minecraft/entity/FallingBlockEntity;blockEntityData:Lnet/minecraft/nbt/NbtCompound;
intermediary field_7194
Lnet/minecraft/class_1540;field_7194:Lnet/minecraft/class_2487;
official c
Lclz;c:Lux;
-
shouldDupe
public boolean shouldDupe- Mappings:
Namespace Name Mixin selector named shouldDupe
Lnet/minecraft/entity/FallingBlockEntity;shouldDupe:Z
intermediary field_52015
Lnet/minecraft/class_1540;field_52015:Z
official d
Lclz;d:Z
-
-
Constructor Details
-
FallingBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbvj;<init>(Lbvq;Ldhh;)V
-
FallingBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/FallingBlockEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/block/BlockState;)V
intermediary <init>
Lnet/minecraft/class_1540;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_2680;)V
official <init>
Lclz;<init>(Ldhh;DDDLdxu;)V
-
-
Method Details
-
spawnFromBlock
Spawns a falling block entity atpos
from the blockstate
.- Returns:
- the spawned entity
- Mappings:
Namespace Name Mixin selector named spawnFromBlock
Lnet/minecraft/entity/FallingBlockEntity;spawnFromBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/entity/FallingBlockEntity;
intermediary method_40005
Lnet/minecraft/class_1540;method_40005(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1540;
official a
Lclz;a(Ldhh;Ljh;Ldxu;)Lclz;
-
isAttackable
public boolean isAttackable()Returns whether the entity can be attacked by players.Note that this is not called for most entities defined in vanilla as unattackable (such as
ItemEntity
andExperienceOrbEntity
) as trying to attack them kicks the player.- Overrides:
isAttackable
in classEntity
- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
Namespace Name Mixin selector named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
official cB
Lbvj;cB()Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntity
also have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity
, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
invalid reference
#isInvulnerableTo
- Specified by:
damage
in classEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64397
Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
official a
Lbvj;a(Lash;Lbtz;F)Z
-
setFallingBlockPos
- Mappings:
Namespace Name Mixin selector named setFallingBlockPos
Lnet/minecraft/entity/FallingBlockEntity;setFallingBlockPos(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_6963
Lnet/minecraft/class_1540;method_6963(Lnet/minecraft/class_2338;)V
official a
Lclz;a(Ljh;)V
-
getFallingBlockPos
- Mappings:
Namespace Name Mixin selector named getFallingBlockPos
Lnet/minecraft/entity/FallingBlockEntity;getFallingBlockPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_6964
Lnet/minecraft/class_1540;method_6964()Lnet/minecraft/class_2338;
official l
Lclz;l()Ljh;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in classEntity
- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bg
Lbvj;bg()Lbvj$c;
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTracker
in classEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbvj;a(Lalg$a;)V
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHit
in classEntity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHit
Lnet/minecraft/entity/Entity;canHit()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
official bH
Lbvj;bH()Z
-
getGravity
protected double getGravity()- Overrides:
getGravity
in classEntity
- Mappings:
Namespace Name Mixin selector named getGravity
Lnet/minecraft/entity/Entity;getGravity()D
intermediary method_7490
Lnet/minecraft/class_1297;method_7490()D
official bd
Lbvj;bd()D
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official h
Lbvj;h()V
-
onDestroyedOnLanding
- Mappings:
Namespace Name Mixin selector named onDestroyedOnLanding
Lnet/minecraft/entity/FallingBlockEntity;onDestroyedOnLanding(Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_32752
Lnet/minecraft/class_1540;method_32752(Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;)V
official a
Lclz;a(Ldkl;Ljh;)V
-
handleFallDamage
public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity
.- Overrides:
handleFallDamage
in classEntity
- Returns:
- whether to play the sound when falling on honey block;
false
for all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamage
Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5747
Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
official a
Lbvj;a(FFLbtz;)Z
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Specified by:
writeCustomDataToNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Specified by:
readCustomDataFromNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)V
-
setHurtEntities
public void setHurtEntities(float fallHurtAmount, int fallHurtMax) - Mappings:
Namespace Name Mixin selector named setHurtEntities
Lnet/minecraft/entity/FallingBlockEntity;setHurtEntities(FI)V
intermediary method_6965
Lnet/minecraft/class_1540;method_6965(FI)V
official b
Lclz;b(FI)V
-
setDestroyedOnLanding
public void setDestroyedOnLanding()- Mappings:
Namespace Name Mixin selector named setDestroyedOnLanding
Lnet/minecraft/entity/FallingBlockEntity;setDestroyedOnLanding()V
intermediary method_49181
Lnet/minecraft/class_1540;method_49181()V
official m
Lclz;m()V
-
doesRenderOnFire
public boolean doesRenderOnFire()Returns whether an entity should render as being on fire.This returns whether the entity is on fire and is not a spectator.
- Overrides:
doesRenderOnFire
in classEntity
- Returns:
- whether an entity should render as being on fire
- See Also:
- Mappings:
Namespace Name Mixin selector named doesRenderOnFire
Lnet/minecraft/entity/Entity;doesRenderOnFire()Z
intermediary method_5862
Lnet/minecraft/class_1297;method_5862()Z
official cF
Lbvj;cF()Z
-
populateCrashReport
Populates the crash report section to include the entity's information.- Overrides:
populateCrashReport
in classEntity
- Mappings:
Namespace Name Mixin selector named populateCrashReport
Lnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
intermediary method_5819
Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)V
official a
Lbvj;a(Lp;)V
-
getBlockState
- Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/entity/FallingBlockEntity;getBlockState()Lnet/minecraft/block/BlockState;
intermediary method_6962
Lnet/minecraft/class_1540;method_6962()Lnet/minecraft/class_2680;
official p
Lclz;p()Ldxu;
-
getDefaultName
Returns the default name of the entity.- Overrides:
getDefaultName
in classEntity
- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultName
Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
intermediary method_23315
Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
official cz
Lbvj;cz()Lxv;
-
entityDataRequiresOperator
public boolean entityDataRequiresOperator()Returns whetherEntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.component.type.NbtComponent)
should reject entity NBTs unless called by an operator.This is
false
by default, and should be overridden if the entity provides functionality that is usually restricted to operators (such asCommandBlockMinecartEntity
).- Overrides:
entityDataRequiresOperator
in classEntity
- Returns:
- whether
EntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.component.type.NbtComponent)
should reject entity NBTs unless called by an operator - Mappings:
Namespace Name Mixin selector named entityDataRequiresOperator
Lnet/minecraft/entity/Entity;entityDataRequiresOperator()Z
intermediary method_5833
Lnet/minecraft/class_1297;method_5833()Z
official cW
Lbvj;cW()Z
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacket
in classEntity
- Returns:
- a packet to notify the clients of the entity's spawning
- API Note:
- Subclasses should return
new EntitySpawnS2CPacket(this)
, unless they use a custom spawning packet. - Mappings:
Namespace Name Mixin selector named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;
official a
Lbvj;a(Lasf;)Laac;
-
onSpawnPacket
Called on the client when the entity receives a spawn packet.This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.
- Overrides:
onSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
official a
Lbvj;a(Lacs;)V
-
teleportTo
Teleports this entity to another location, potentially in another world.Note if teleported to a different world, entities (excluding server player entities) are completely recreated at the destination.
- Overrides:
teleportTo
in classEntity
- Returns:
- the entity after teleporting
- Mappings:
Namespace Name Mixin selector named teleportTo
Lnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;
intermediary method_5731
Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;
official b
Lbvj;b(Leuw;)Lbvj;
-