Class FallingBlockEntity
- All Implemented Interfaces:
- CommandOutput,- Nameable,- EntityLike
- Mappings:
- Namespace - Name - official - bvg- intermediary - net/minecraft/class_1540- named - net/minecraft/entity/FallingBlockEntity
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate BlockStateprotected static final TrackedData<BlockPos>private booleanbooleanprivate floatprivate intprivate booleanprivate static final LoggerintFields inherited from class net.minecraft.entity.Entityage, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutputDUMMY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionFallingBlockEntity(EntityType<? extends FallingBlockEntity> type, World world) privateFallingBlockEntity(World world, double x, double y, double z, BlockState block) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.Returns a packet to notify the clients of the entity's spawning.booleanReturns whether an entity should render as being on fire.booleanReturns whetherEntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.nbt.NbtCompound)should reject entity NBTs unless called by an operator.protected TextReturns the default name of the entity.protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.booleanhandleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.protected voidInitializes 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 voidReads custom data fromnbt.voidvoidvoidsetHurtEntities(float fallHurtAmount, int fallHurtMax) static FallingBlockEntityspawnFromBlock(World world, BlockPos pos, BlockState state) Spawns a falling block entity atposfrom the blockstate.voidtick()Ticks this entity.protected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, 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, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, 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, limitFallDistance, lookAt, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilenced
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbvg;f:Lorg/slf4j/Logger;- intermediary - field_36333- Lnet/minecraft/class_1540;field_36333:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/entity/FallingBlockEntity;LOGGER:Lorg/slf4j/Logger;
 
- 
BLOCK_POS- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbvg;e:Laby;- intermediary - field_7195- Lnet/minecraft/class_1540;field_7195:Lnet/minecraft/class_2940;- named - BLOCK_POS- Lnet/minecraft/entity/FallingBlockEntity;BLOCK_POS:Lnet/minecraft/entity/data/TrackedData;
 
- 
block- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbvg;g:Ldcb;- intermediary - field_7188- Lnet/minecraft/class_1540;field_7188:Lnet/minecraft/class_2680;- named - block- Lnet/minecraft/entity/FallingBlockEntity;block:Lnet/minecraft/block/BlockState;
 
- 
timeFallingpublic int timeFalling- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbvg;b:I- intermediary - field_7192- Lnet/minecraft/class_1540;field_7192:I- named - timeFalling- Lnet/minecraft/entity/FallingBlockEntity;timeFalling:I
 
- 
dropItempublic boolean dropItem- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbvg;c:Z- intermediary - field_7193- Lnet/minecraft/class_1540;field_7193:Z- named - dropItem- Lnet/minecraft/entity/FallingBlockEntity;dropItem:Z
 
- 
destroyedOnLandingprivate boolean destroyedOnLanding- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbvg;h:Z- intermediary - field_7189- Lnet/minecraft/class_1540;field_7189:Z- named - destroyedOnLanding- Lnet/minecraft/entity/FallingBlockEntity;destroyedOnLanding:Z
 
- 
hurtEntitiesprivate boolean hurtEntities- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbvg;i:Z- intermediary - field_7191- Lnet/minecraft/class_1540;field_7191:Z- named - hurtEntities- Lnet/minecraft/entity/FallingBlockEntity;hurtEntities:Z
 
- 
fallHurtMaxprivate int fallHurtMax- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbvg;j:I- intermediary - field_7190- Lnet/minecraft/class_1540;field_7190:I- named - fallHurtMax- Lnet/minecraft/entity/FallingBlockEntity;fallHurtMax:I
 
- 
fallHurtAmountprivate float fallHurtAmount- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbvg;k:F- intermediary - field_7187- Lnet/minecraft/class_1540;field_7187:F- named - fallHurtAmount- Lnet/minecraft/entity/FallingBlockEntity;fallHurtAmount:F
 
- 
blockEntityData- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbvg;d:Lqr;- intermediary - field_7194- Lnet/minecraft/class_1540;field_7194:Lnet/minecraft/class_2487;- named - blockEntityData- Lnet/minecraft/entity/FallingBlockEntity;blockEntityData:Lnet/minecraft/nbt/NbtCompound;
 
 
- 
- 
Constructor Details- 
FallingBlockEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj;<init>(Lbfn;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
 
- 
FallingBlockEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbvg;<init>(Lcmm;DDDLdcb;)V- intermediary - <init>- Lnet/minecraft/class_1540;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_2680;)V- named - <init>- Lnet/minecraft/entity/FallingBlockEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/block/BlockState;)V
 
 
- 
- 
Method Details- 
spawnFromBlockSpawns a falling block entity atposfrom the blockstate.- Returns:
- the spawned entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbvg;a(Lcmm;Lgu;Ldcb;)Lbvg;- 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;- named - spawnFromBlock- Lnet/minecraft/entity/FallingBlockEntity;spawnFromBlock(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/entity/FallingBlockEntity;
 
- 
isAttackablepublic 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 class- Entity
- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cn- Lbfj;cn()Z- intermediary - method_5732- Lnet/minecraft/class_1297;method_5732()Z- named - isAttackable- Lnet/minecraft/entity/Entity;isAttackable()Z
 
- 
setFallingBlockPos- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbvg;a(Lgu;)V- intermediary - method_6963- Lnet/minecraft/class_1540;method_6963(Lnet/minecraft/class_2338;)V- named - setFallingBlockPos- Lnet/minecraft/entity/FallingBlockEntity;setFallingBlockPos(Lnet/minecraft/util/math/BlockPos;)V
 
- 
getFallingBlockPos- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbvg;j()Lgu;- intermediary - method_6964- Lnet/minecraft/class_1540;method_6964()Lnet/minecraft/class_2338;- named - getFallingBlockPos- Lnet/minecraft/entity/FallingBlockEntity;getFallingBlockPos()Lnet/minecraft/util/math/BlockPos;
 
- 
getMoveEffectReturns the possible effect(s) of an entity moving.- Overrides:
- getMoveEffectin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - aS- Lbfj;aS()Lbfj$b;- intermediary - method_33570- Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;- named - getMoveEffect- Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Specified by:
- initDataTrackerin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
canHitpublic boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
- canHitin class- Entity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
- Namespace - Name - Mixin selector - official - bo- Lbfj;bo()Z- intermediary - method_5863- Lnet/minecraft/class_1297;method_5863()Z- named - canHit- Lnet/minecraft/entity/Entity;canHit()Z
 
- 
tickpublic void tick()Ticks this entity.
- 
onDestroyedOnLanding- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbvg;a(Lcpn;Lgu;)V- intermediary - method_32752- Lnet/minecraft/class_1540;method_32752(Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;)V- named - onDestroyedOnLanding- Lnet/minecraft/entity/FallingBlockEntity;onDestroyedOnLanding(Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
 
- 
handleFallDamagepublic 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:
- handleFallDamagein class- Entity
- Returns:
- whether to play the sound when falling on honey block; falsefor all entities except horses and llamas
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(FFLben;)Z- intermediary - method_5747- Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z- named - handleFallDamage- Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has 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:
- writeCustomDataToNbtin class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has 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. nbtmight 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:
- readCustomDataFromNbtin class- Entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
setHurtEntitiespublic void setHurtEntities(float fallHurtAmount, int fallHurtMax) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lbvg;b(FI)V- intermediary - method_6965- Lnet/minecraft/class_1540;method_6965(FI)V- named - setHurtEntities- Lnet/minecraft/entity/FallingBlockEntity;setHurtEntities(FI)V
 
- 
setDestroyedOnLandingpublic void setDestroyedOnLanding()- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbvg;k()V- intermediary - method_49181- Lnet/minecraft/class_1540;method_49181()V- named - setDestroyedOnLanding- Lnet/minecraft/entity/FallingBlockEntity;setDestroyedOnLanding()V
 
- 
doesRenderOnFirepublic 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 class- Entity
- Returns:
- whether an entity should render as being on fire
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cs- Lbfj;cs()Z- intermediary - method_5862- Lnet/minecraft/class_1297;method_5862()Z- named - doesRenderOnFire- Lnet/minecraft/entity/Entity;doesRenderOnFire()Z
 
- 
populateCrashReportPopulates the crash report section to include the entity's information.- Overrides:
- populateCrashReportin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lp;)V- intermediary - method_5819- Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)V- named - populateCrashReport- Lnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
 
- 
getBlockState- Mappings:
- Namespace - Name - Mixin selector - official - o- Lbvg;o()Ldcb;- intermediary - method_6962- Lnet/minecraft/class_1540;method_6962()Lnet/minecraft/class_2680;- named - getBlockState- Lnet/minecraft/entity/FallingBlockEntity;getBlockState()Lnet/minecraft/block/BlockState;
 
- 
getDefaultNameReturns the default name of the entity.- Overrides:
- getDefaultNamein class- Entity
- Returns:
- the default name of the entity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cl- Lbfj;cl()Lsw;- intermediary - method_23315- Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;- named - getDefaultName- Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
 
- 
entityDataRequiresOperatorpublic boolean entityDataRequiresOperator()Returns whetherEntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.nbt.NbtCompound)should reject entity NBTs unless called by an operator.This is falseby default, and should be overridden if the entity provides functionality that is usually restricted to operators (such asCommandBlockMinecartEntity).- Overrides:
- entityDataRequiresOperatorin class- Entity
- Returns:
- whether EntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.nbt.NbtCompound)should reject entity NBTs unless called by an operator
- Mappings:
- Namespace - Name - Mixin selector - official - cK- Lbfj;cK()Z- intermediary - method_5833- Lnet/minecraft/class_1297;method_5833()Z- named - entityDataRequiresOperator- Lnet/minecraft/entity/Entity;entityDataRequiresOperator()Z
 
- 
createSpawnPacketReturns a packet to notify the clients of the entity's spawning.- Overrides:
- createSpawnPacketin class- Entity
- Returns:
- a packet to notify the clients of the entity's spawning
- Mappings:
- Namespace - Name - Mixin selector - official - S- Lbfj;S()Luo;- intermediary - method_18002- Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;- named - createSpawnPacket- Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/packet/Packet;
 
- 
onSpawnPacketCalled 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 class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lus;)V- intermediary - method_31471- Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V- named - onSpawnPacket- Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
 
 
-