Class PaintingEntity
- All Implemented Interfaces:
DataTracked
,VariantHolder<RegistryEntry<PaintingVariant>>
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/decoration/painting/PaintingEntity
intermediary net/minecraft/class_1534
official ciq
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason, Entity.TeleportTargetSupplier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
private static final TrackedData
<RegistryEntry<PaintingVariant>> static final com.mojang.serialization.Codec
<RegistryEntry<PaintingVariant>> static final com.mojang.serialization.MapCodec
<RegistryEntry<PaintingVariant>> Fields inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
facing, PREDICATE
Fields inherited from class net.minecraft.entity.decoration.BlockAttachedEntity
attachedBlockPos
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, 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, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ModifierConstructorDescriptionPaintingEntity
(EntityType<? extends PaintingEntity> type, World world) private
PaintingEntity
(World world, BlockPos pos) PaintingEntity
(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant) -
Method Summary
Modifier and TypeMethodDescriptionprotected Box
calculateBoundingBox
(BlockPos pos, Direction side) Returns a packet to notify the clients of the entity's spawning.private double
getOffset
(int length) Returns the stack for creative "pick block" functionality, ornull
if there is none.private static int
getSize
(RegistryEntry<PaintingVariant> variant) Returns the position of the entity synced to clients.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.void
void
onPlace()
void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
onTrackedDataSet
(TrackedData<?> data) static Optional
<PaintingEntity> placePainting
(World world, BlockPos pos, Direction facing) void
Reads custom data fromnbt
.void
refreshPositionAndAngles
(double x, double y, double z, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.void
setVariant
(RegistryEntry<PaintingVariant> variant) void
updateTrackedPositionAndAngles
(double x, double y, double z, float yaw, float pitch, int interpolationSteps) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
applyMirror, applyRotation, canStayAttached, dropStack, getAttachmentBox, getHorizontalFacing, setFacing, updateAttachmentPosition
Methods inherited from class net.minecraft.entity.decoration.BlockAttachedEntity
addVelocity, calculateDimensions, canHit, damage, getAttachedBlockPos, handleAttack, move, onStruckByLightning, setPosition, shouldSetPositionOnLoad, tick
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyGravity, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, 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, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerNearestTo, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, 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, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, 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, lerpPosAndRotation, limitFallDistance, lookAt, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, 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, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANT
Lnet/minecraft/entity/decoration/painting/PaintingEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_38941
Lnet/minecraft/class_1534;field_38941:Lnet/minecraft/class_2940;
official h
Lciq;h:Lajp;
-
VARIANT_MAP_CODEC
public static final com.mojang.serialization.MapCodec<RegistryEntry<PaintingVariant>> VARIANT_MAP_CODEC- Mappings:
Namespace Name Mixin selector named VARIANT_MAP_CODEC
Lnet/minecraft/entity/decoration/painting/PaintingEntity;VARIANT_MAP_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_49238
Lnet/minecraft/class_1534;field_49238:Lcom/mojang/serialization/MapCodec;
official e
Lciq;e:Lcom/mojang/serialization/MapCodec;
-
VARIANT_ENTRY_CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<PaintingVariant>> VARIANT_ENTRY_CODEC- Mappings:
Namespace Name Mixin selector named VARIANT_ENTRY_CODEC
Lnet/minecraft/entity/decoration/painting/PaintingEntity;VARIANT_ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49239
Lnet/minecraft/class_1534;field_49239:Lcom/mojang/serialization/Codec;
official f
Lciq;f:Lcom/mojang/serialization/Codec;
-
field_51595
public static final float field_51595- See Also:
- Mappings:
Namespace Name Mixin selector named field_51595
Lnet/minecraft/entity/decoration/painting/PaintingEntity;field_51595:F
intermediary field_51595
Lnet/minecraft/class_1534;field_51595:F
official g
Lciq;g:F
-
-
Constructor Details
-
PaintingEntity
- 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>
Lbsh;<init>(Lbsn;Ldcg;)V
-
PaintingEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/decoration/painting/PaintingEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
intermediary <init>
Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
official <init>
Lciq;<init>(Ldcg;Lja;)V
-
PaintingEntity
public PaintingEntity(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/decoration/painting/PaintingEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary <init>
Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_6880;)V
official <init>
Lciq;<init>(Ldcg;Lja;Ljf;Ljj;)V
-
-
Method Details
-
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
Lbsh;a(Lajt$a;)V
-
onTrackedDataSet
- Specified by:
onTrackedDataSet
in interfaceDataTracked
- Overrides:
onTrackedDataSet
in classEntity
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lajs;a(Lajp;)V
-
setVariant
- Specified by:
setVariant
in interfaceVariantHolder<RegistryEntry<PaintingVariant>>
- Mappings:
Namespace Name Mixin selector named setVariant
Lnet/minecraft/entity/decoration/painting/PaintingEntity;setVariant(Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary method_43402
Lnet/minecraft/class_1534;method_43402(Lnet/minecraft/class_6880;)V
official b
Lciq;b(Ljj;)V
-
getVariant
- Specified by:
getVariant
in interfaceVariantHolder<RegistryEntry<PaintingVariant>>
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/entity/decoration/painting/PaintingEntity;getVariant()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_43404
Lnet/minecraft/class_1534;method_43404()Lnet/minecraft/class_6880;
official v
Lciq;v()Ljj;
-
placePainting
- Mappings:
Namespace Name Mixin selector named placePainting
Lnet/minecraft/entity/decoration/painting/PaintingEntity;placePainting(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Ljava/util/Optional;
intermediary method_43401
Lnet/minecraft/class_1534;method_43401(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Ljava/util/Optional;
official a
Lciq;a(Ldcg;Lja;Ljf;)Ljava/util/Optional;
-
getSize
- Mappings:
Namespace Name Mixin selector named getSize
Lnet/minecraft/entity/decoration/painting/PaintingEntity;getSize(Lnet/minecraft/registry/entry/RegistryEntry;)I
intermediary method_43403
Lnet/minecraft/class_1534;method_43403(Lnet/minecraft/class_6880;)I
official c
Lciq;c(Ljj;)I
-
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.
- Overrides:
writeCustomDataToNbt
in classBlockAttachedEntity
- 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
Lbsh;b(Ltx;)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.- Overrides:
readCustomDataFromNbt
in classBlockAttachedEntity
- 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
Lbsh;a(Ltx;)V
-
calculateBoundingBox
- Specified by:
calculateBoundingBox
in classAbstractDecorationEntity
- Mappings:
Namespace Name Mixin selector named calculateBoundingBox
Lnet/minecraft/entity/decoration/AbstractDecorationEntity;calculateBoundingBox(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Box;
intermediary method_59943
Lnet/minecraft/class_1530;method_59943(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_238;
official a
Lcin;a(Lja;Ljf;)Lewc;
-
getOffset
private double getOffset(int length) - Mappings:
Namespace Name Mixin selector named getOffset
Lnet/minecraft/entity/decoration/painting/PaintingEntity;getOffset(I)D
intermediary method_59946
Lnet/minecraft/class_1534;method_59946(I)D
official b
Lciq;b(I)D
-
onBreak
- Specified by:
onBreak
in classBlockAttachedEntity
- Mappings:
Namespace Name Mixin selector named onBreak
Lnet/minecraft/entity/decoration/BlockAttachedEntity;onBreak(Lnet/minecraft/entity/Entity;)V
intermediary method_6889
Lnet/minecraft/class_9691;method_6889(Lnet/minecraft/class_1297;)V
official b
Lcil;b(Lbsh;)V
-
onPlace
public void onPlace()- Specified by:
onPlace
in classAbstractDecorationEntity
- Mappings:
Namespace Name Mixin selector named onPlace
Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()V
intermediary method_6894
Lnet/minecraft/class_1530;method_6894()V
official C
Lcin;C()V
-
refreshPositionAndAngles
public void refreshPositionAndAngles(double x, double y, double z, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.This should be used over other methods for setting positions of mobs.
- Overrides:
refreshPositionAndAngles
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named refreshPositionAndAngles
Lnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)V
intermediary method_5808
Lnet/minecraft/class_1297;method_5808(DDDFF)V
official b
Lbsh;b(DDDFF)V
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFI)V
official a
Lbsh;a(DDDFFI)V
-
getSyncedPos
Returns the position of the entity synced to clients.This is the same as
Entity.getPos()
except for paintings which return the attachment position.- Overrides:
getSyncedPos
in classEntity
- Returns:
- the position of the entity synced to clients
- See Also:
- Mappings:
Namespace Name Mixin selector named getSyncedPos
Lnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_43390
Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;
official dq
Lbsh;dq()Lewh;
-
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/network/packet/Packet;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
official dn
Lbsh;dn()Lzb;
-
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
Lbsh;a(Labo;)V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornull
if there is none.If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that
MobEntity
handles the spawn eggs.ItemFrameEntity
instead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStack
in classEntity
- Returns:
- the stack for creative "pick block" functionality, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
official dE
Lbsh;dE()Lcud;
-