Class FallingBlockEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/FallingBlockEntityintermediary net/minecraft/class_1540official cvq
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final TrackedData<BlockPos> private BlockStateprivate static final BlockStateprivate static final booleanprivate static final booleanprivate static final floatprivate static final intprivate static final intprivate booleanbooleanprivate floatprivate intprivate booleanprivate static final LoggerbooleanintFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionFallingBlockEntity(EntityType<? extends FallingBlockEntity> type, World world) privateFallingBlockEntity(World world, double x, double y, double z, BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHit()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 booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.booleanReturns whether an entity should render as being on fire.protected TextReturns the default name of the entity.protected doubleprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.booleanhandleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.booleanReturns whether the entity can be attacked by players.voidonDestroyedOnLanding(Block block, BlockPos pos) voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidpopulateCrashReport(CrashReportSection section) Populates the crash report section to include the entity's information.protected voidreadCustomData(ReadView view) voidvoidvoidsetHurtEntities(float fallHurtAmount, int fallHurtMax) static FallingBlockEntityspawnFromBlock(World world, BlockPos pos, BlockState state) Spawns a falling block entity atposfrom the blockstate.teleportTo(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.voidtick()Ticks this entity.protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, checkWaterState, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getInterpolator, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isBeingRainedOn, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/FallingBlockEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_36333Lnet/minecraft/class_1540;field_36333:Lorg/slf4j/Logger;official fLcvq;f:Lorg/slf4j/Logger;
-
DEFAULT_BLOCK_STATE
- Mappings:
Namespace Name Mixin selector named DEFAULT_BLOCK_STATELnet/minecraft/entity/FallingBlockEntity;DEFAULT_BLOCK_STATE:Lnet/minecraft/block/BlockState;intermediary field_57654Lnet/minecraft/class_1540;field_57654:Lnet/minecraft/class_2680;official gLcvq;g:Lejm;
-
DEFAULT_TIME
private static final int DEFAULT_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_TIMELnet/minecraft/entity/FallingBlockEntity;DEFAULT_TIME:Iintermediary field_57655Lnet/minecraft/class_1540;field_57655:Iofficial hLcvq;h:I
-
DEFAULT_FALL_HURT_AMOUNT
private static final float DEFAULT_FALL_HURT_AMOUNT- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FALL_HURT_AMOUNTLnet/minecraft/entity/FallingBlockEntity;DEFAULT_FALL_HURT_AMOUNT:Fintermediary field_57656Lnet/minecraft/class_1540;field_57656:Fofficial iLcvq;i:F
-
DEFAULT_FALL_HURT_MAX
private static final int DEFAULT_FALL_HURT_MAX- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FALL_HURT_MAXLnet/minecraft/entity/FallingBlockEntity;DEFAULT_FALL_HURT_MAX:Iintermediary field_57657Lnet/minecraft/class_1540;field_57657:Iofficial jLcvq;j:I
-
DEFAULT_DROP_ITEM
private static final boolean DEFAULT_DROP_ITEM- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DROP_ITEMLnet/minecraft/entity/FallingBlockEntity;DEFAULT_DROP_ITEM:Zintermediary field_57658Lnet/minecraft/class_1540;field_57658:Zofficial kLcvq;k:Z
-
DEFAULT_DESTROYED_ON_LANDING
private static final boolean DEFAULT_DESTROYED_ON_LANDING- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DESTROYED_ON_LANDINGLnet/minecraft/entity/FallingBlockEntity;DEFAULT_DESTROYED_ON_LANDING:Zintermediary field_57659Lnet/minecraft/class_1540;field_57659:Zofficial lLcvq;l:Z
-
BLOCK_POS
- Mappings:
Namespace Name Mixin selector named BLOCK_POSLnet/minecraft/entity/FallingBlockEntity;BLOCK_POS:Lnet/minecraft/entity/data/TrackedData;intermediary field_7195Lnet/minecraft/class_1540;field_7195:Lnet/minecraft/class_2940;official eLcvq;e:Lalm;
-
blockState
- Mappings:
Namespace Name Mixin selector named blockStateLnet/minecraft/entity/FallingBlockEntity;blockState:Lnet/minecraft/block/BlockState;intermediary field_7188Lnet/minecraft/class_1540;field_7188:Lnet/minecraft/class_2680;official mLcvq;m:Lejm;
-
timeFalling
public int timeFalling- Mappings:
Namespace Name Mixin selector named timeFallingLnet/minecraft/entity/FallingBlockEntity;timeFalling:Iintermediary field_7192Lnet/minecraft/class_1540;field_7192:Iofficial aLcvq;a:I
-
dropItem
public boolean dropItem- Mappings:
Namespace Name Mixin selector named dropItemLnet/minecraft/entity/FallingBlockEntity;dropItem:Zintermediary field_7193Lnet/minecraft/class_1540;field_7193:Zofficial bLcvq;b:Z
-
destroyedOnLanding
private boolean destroyedOnLanding- Mappings:
Namespace Name Mixin selector named destroyedOnLandingLnet/minecraft/entity/FallingBlockEntity;destroyedOnLanding:Zintermediary field_7189Lnet/minecraft/class_1540;field_7189:Zofficial nLcvq;n:Z
-
hurtEntities
private boolean hurtEntities- Mappings:
Namespace Name Mixin selector named hurtEntitiesLnet/minecraft/entity/FallingBlockEntity;hurtEntities:Zintermediary field_7191Lnet/minecraft/class_1540;field_7191:Zofficial oLcvq;o:Z
-
fallHurtMax
private int fallHurtMax- Mappings:
Namespace Name Mixin selector named fallHurtMaxLnet/minecraft/entity/FallingBlockEntity;fallHurtMax:Iintermediary field_7190Lnet/minecraft/class_1540;field_7190:Iofficial pLcvq;p:I
-
fallHurtAmount
private float fallHurtAmount- Mappings:
Namespace Name Mixin selector named fallHurtAmountLnet/minecraft/entity/FallingBlockEntity;fallHurtAmount:Fintermediary field_7187Lnet/minecraft/class_1540;field_7187:Fofficial qLcvq;q:F
-
blockEntityData
- Mappings:
Namespace Name Mixin selector named blockEntityDataLnet/minecraft/entity/FallingBlockEntity;blockEntityData:Lnet/minecraft/nbt/NbtCompound;intermediary field_7194Lnet/minecraft/class_1540;field_7194:Lnet/minecraft/class_2487;official cLcvq;c:Lup;
-
shouldDupe
public boolean shouldDupe- Mappings:
Namespace Name Mixin selector named shouldDupeLnet/minecraft/entity/FallingBlockEntity;shouldDupe:Zintermediary field_52015Lnet/minecraft/class_1540;field_52015:Zofficial dLcvq;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;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcdv;<init>(Lcee;Ldrq;)V
-
FallingBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/FallingBlockEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_1540;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_2680;)Vofficial <init>Lcvq;<init>(Ldrq;DDDLejm;)V
-
-
Method Details
-
spawnFromBlock
Spawns a falling block entity atposfrom the blockstate.- Returns:
- the spawned entity
- Mappings:
Namespace Name Mixin selector named spawnFromBlockLnet/minecraft/entity/FallingBlockEntity;spawnFromBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/entity/FallingBlockEntity;intermediary method_40005Lnet/minecraft/class_1540;method_40005(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1540;official aLcvq;a(Ldrq;Lja;Lejm;)Lcvq;
-
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
ItemEntityandExperienceOrbEntity) as trying to attack them kicks the player.- Overrides:
isAttackablein classEntity- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
Namespace Name Mixin selector named isAttackableLnet/minecraft/entity/Entity;isAttackable()Zintermediary method_5732Lnet/minecraft/class_1297;method_5732()Zofficial cOLcdv;cO()Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas 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
ItemEntityalso 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
LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)and return early.- Specified by:
damagein classEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64397Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Zofficial aLcdv;a(Lawx;Lcci;F)Z
-
setFallingBlockPos
- Mappings:
Namespace Name Mixin selector named setFallingBlockPosLnet/minecraft/entity/FallingBlockEntity;setFallingBlockPos(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_6963Lnet/minecraft/class_1540;method_6963(Lnet/minecraft/class_2338;)Vofficial aLcvq;a(Lja;)V
-
getFallingBlockPos
- Mappings:
Namespace Name Mixin selector named getFallingBlockPosLnet/minecraft/entity/FallingBlockEntity;getFallingBlockPos()Lnet/minecraft/util/math/BlockPos;intermediary method_6964Lnet/minecraft/class_1540;method_6964()Lnet/minecraft/class_2338;official eLcvq;e()Lja;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin 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 getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official brLcdv;br()Lcdv$d;
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcdv;a(Lalq$a;)V
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHitin classEntity- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bTLcdv;bT()Z
-
getGravity
protected double getGravity()- Overrides:
getGravityin classEntity- Mappings:
Namespace Name Mixin selector named getGravityLnet/minecraft/entity/Entity;getGravity()Dintermediary method_7490Lnet/minecraft/class_1297;method_7490()Dofficial boLcdv;bo()D
-
tick
public void tick()Ticks this entity.- Overrides:
tickin 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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcdv;g()V
-
onDestroyedOnLanding
- Mappings:
Namespace Name Mixin selector named onDestroyedOnLandingLnet/minecraft/entity/FallingBlockEntity;onDestroyedOnLanding(Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_32752Lnet/minecraft/class_1540;method_32752(Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;)Vofficial aLcvq;a(Lduv;Lja;)V
-
handleFallDamage
public boolean handleFallDamage(double fallDistance, float damagePerDistance, 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:
handleFallDamagein classEntity- Returns:
- whether to play the sound when falling on honey block;
falsefor all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamageLnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5747Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Zofficial aLcdv;a(DFLcci;)Z
-
writeCustomData
- Specified by:
writeCustomDatain classEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcdv;a(Lfir;)V
-
readCustomData
- Specified by:
readCustomDatain classEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcdv;a(Lfip;)V
-
setHurtEntities
public void setHurtEntities(float fallHurtAmount, int fallHurtMax) - Mappings:
Namespace Name Mixin selector named setHurtEntitiesLnet/minecraft/entity/FallingBlockEntity;setHurtEntities(FI)Vintermediary method_6965Lnet/minecraft/class_1540;method_6965(FI)Vofficial bLcvq;b(FI)V
-
setDestroyedOnLanding
public void setDestroyedOnLanding()- Mappings:
Namespace Name Mixin selector named setDestroyedOnLandingLnet/minecraft/entity/FallingBlockEntity;setDestroyedOnLanding()Vintermediary method_49181Lnet/minecraft/class_1540;method_49181()Vofficial fLcvq;f()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:
doesRenderOnFirein classEntity- Returns:
- whether an entity should render as being on fire
- See Also:
- Mappings:
Namespace Name Mixin selector named doesRenderOnFireLnet/minecraft/entity/Entity;doesRenderOnFire()Zintermediary method_5862Lnet/minecraft/class_1297;method_5862()Zofficial cSLcdv;cS()Z
-
populateCrashReport
Populates the crash report section to include the entity's information.- Overrides:
populateCrashReportin classEntity- Mappings:
Namespace Name Mixin selector named populateCrashReportLnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)Vintermediary method_5819Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)Vofficial aLcdv;a(Lq;)V
-
getBlockState
- Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/entity/FallingBlockEntity;getBlockState()Lnet/minecraft/block/BlockState;intermediary method_6962Lnet/minecraft/class_1540;method_6962()Lnet/minecraft/class_2680;official iLcvq;i()Lejm;
-
getDefaultName
Returns the default name of the entity.- Overrides:
getDefaultNamein classEntity- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultNameLnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;intermediary method_23315Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;official cMLcdv;cM()Lxx;
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacketin 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 createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;intermediary method_18002Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;official aLcdv;a(Lawv;)Laao;
-
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:
onSpawnPacketin classEntity- Mappings:
Namespace Name Mixin selector named onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLcdv;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:
teleportToin classEntity- Returns:
- the entity after teleporting
- Mappings:
Namespace Name Mixin selector named teleportToLnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;intermediary method_5731Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;official bLcdv;b(Lfha;)Lcdv;
-