Class PaintingEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,ScoreHolder,Nameable,EntityLike,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/decoration/painting/PaintingEntityintermediary net/minecraft/class_1534official coi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprivate static final TrackedData<RegistryEntry<PaintingVariant>> Fields inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
facing, PREDICATEFields inherited from class net.minecraft.entity.decoration.BlockAttachedEntity
attachedBlockPosFields 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, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, 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
ConstructorsModifierConstructorDescriptionPaintingEntity(EntityType<? extends PaintingEntity> type, World world) privatePaintingEntity(World world, BlockPos pos) PaintingEntity(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant) -
Method Summary
Modifier and TypeMethodDescriptionprotected BoxcalculateBoundingBox(BlockPos pos, Direction side) protected voidcreateSpawnPacket(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.<T> Tget(ComponentType<? extends T> type) private doublegetOffset(int length) Returns the stack for creative "pick block" functionality, ornullif there is none.private static intgetSize(RegistryEntry<PaintingVariant> variant) Returns the position of the entity synced to clients.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.voidonBreak(ServerWorld world, @Nullable Entity breaker) voidonPlace()voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.static Optional<PaintingEntity> placePainting(World world, BlockPos pos, Direction facing) voidReads custom data fromnbt.voidrefreshPositionAndAngles(double x, double y, double z, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.protected <T> booleansetApplicableComponent(ComponentType<T> type, T value) private voidsetVariant(RegistryEntry<PaintingVariant> variant) voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.decoration.AbstractDecorationEntity
applyMirror, applyRotation, canStayAttached, dropStack, getAttachmentBox, getHorizontalFacing, setFacing, updateAttachmentPositionMethods inherited from class net.minecraft.entity.decoration.BlockAttachedEntity
addVelocity, calculateDimensions, canHit, clientDamage, damage, getAttachedBlockPos, handleAttack, isImmuneToExplosion, move, onStruckByLightning, setPosition, shouldSetPositionOnLoad, tickMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, 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, getInterpolator, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, 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, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, 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, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbtMethods 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.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANTLnet/minecraft/entity/decoration/painting/PaintingEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;intermediary field_38941Lnet/minecraft/class_1534;field_38941:Lnet/minecraft/class_2940;official eLcoi;e:Laku;
-
field_51595
public static final float field_51595- See Also:
- Mappings:
Namespace Name Mixin selector named field_51595Lnet/minecraft/entity/decoration/painting/PaintingEntity;field_51595:Fintermediary field_51595Lnet/minecraft/class_1534;field_51595:Fofficial dLcoi;d:F
-
-
Constructor Details
-
PaintingEntity
- 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>Lbxe;<init>(Lbxn;Ldkj;)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;)Vintermediary <init>Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial <init>Lcoi;<init>(Ldkj;Liw;)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;)Vintermediary <init>Lnet/minecraft/class_1534;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_6880;)Vofficial <init>Lcoi;<init>(Ldkj;Liw;Ljc;Ljg;)V
-
-
Method Details
-
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 aLbxe;a(Laky$a;)V
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLakx;a(Laku;)V
-
setVariant
- Mappings:
Namespace Name Mixin selector named setVariantLnet/minecraft/entity/decoration/painting/PaintingEntity;setVariant(Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_43402Lnet/minecraft/class_1534;method_43402(Lnet/minecraft/class_6880;)Vofficial bLcoi;b(Ljg;)V
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariantLnet/minecraft/entity/decoration/painting/PaintingEntity;getVariant()Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_43404Lnet/minecraft/class_1534;method_43404()Lnet/minecraft/class_6880;official lLcoi;l()Ljg;
-
get
- Specified by:
getin interfaceComponentsAccess- Overrides:
getin classEntity- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_58694Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkg;a(Lkk;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFromin classEntity- Mappings:
Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_66649Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)Vofficial aLbxe;a(Lkg;)V
-
setApplicableComponent
- Overrides:
setApplicableComponentin classEntity- Mappings:
Namespace Name Mixin selector named setApplicableComponentLnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Zintermediary method_66654Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Zofficial bLbxe;b(Lkk;Ljava/lang/Object;)Z
-
placePainting
- Mappings:
Namespace Name Mixin selector named placePaintingLnet/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_43401Lnet/minecraft/class_1534;method_43401(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Ljava/util/Optional;official aLcoi;a(Ldkj;Liw;Ljc;)Ljava/util/Optional;
-
getSize
- Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/entity/decoration/painting/PaintingEntity;getSize(Lnet/minecraft/registry/entry/RegistryEntry;)Iintermediary method_43403Lnet/minecraft/class_1534;method_43403(Lnet/minecraft/class_6880;)Iofficial cLcoi;c(Ljg;)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:
writeCustomDataToNbtin classBlockAttachedEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbxe;b(Lua;)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.
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.- Overrides:
readCustomDataFromNbtin classBlockAttachedEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbxe;a(Lua;)V
-
calculateBoundingBox
- Specified by:
calculateBoundingBoxin classAbstractDecorationEntity- Mappings:
Namespace Name Mixin selector named calculateBoundingBoxLnet/minecraft/entity/decoration/AbstractDecorationEntity;calculateBoundingBox(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Box;intermediary method_59943Lnet/minecraft/class_1530;method_59943(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_238;official aLcof;a(Liw;Ljc;)Lffx;
-
getOffset
private double getOffset(int length) - Mappings:
Namespace Name Mixin selector named getOffsetLnet/minecraft/entity/decoration/painting/PaintingEntity;getOffset(I)Dintermediary method_59946Lnet/minecraft/class_1534;method_59946(I)Dofficial bLcoi;b(I)D
-
onBreak
- Specified by:
onBreakin classBlockAttachedEntity- Mappings:
Namespace Name Mixin selector named onBreakLnet/minecraft/entity/decoration/BlockAttachedEntity;onBreak(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Vintermediary method_6889Lnet/minecraft/class_9691;method_6889(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Vofficial aLcod;a(Lasb;Lbxe;)V
-
onPlace
public void onPlace()- Specified by:
onPlacein classAbstractDecorationEntity- Mappings:
Namespace Name Mixin selector named onPlaceLnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()Vintermediary method_6894Lnet/minecraft/class_1530;method_6894()Vofficial uLcof;u()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:
refreshPositionAndAnglesin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named refreshPositionAndAnglesLnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)Vintermediary method_5808Lnet/minecraft/class_1297;method_5808(DDDFF)Vofficial bLbxe;b(DDDFF)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:
getSyncedPosin classEntity- Returns:
- the position of the entity synced to clients
- See Also:
- Mappings:
Namespace Name Mixin selector named getSyncedPosLnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;intermediary method_43390Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;official duLbxe;du()Lfgc;
-
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 aLbxe;a(Larz;)Lzo;
-
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 aLbxe;a(Lacg;)V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornullif 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
MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStackin classEntity- Returns:
- the stack for creative "pick block" functionality, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dILbxe;dI()Ldak;
-