Package net.minecraft.entity
Class ItemEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.ItemEntity
- All Implemented Interfaces:
CommandOutput
,Nameable
,EntityLike
public class ItemEntity extends Entity
- Mappings:
Namespace Name official bge
intermediary net/minecraft/class_1542
named net/minecraft/entity/ItemEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description private static int
field_30456
private static int
field_30457
private static int
field_30458
private int
health
private int
itemAge
The number of ticks since this item entity has been created.private UUID
owner
private int
pickupDelay
private static TrackedData<ItemStack>
STACK
private UUID
thrower
float
uniqueOffset
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, field_29973, field_29974, field_29979, field_29980, field_29981, field_29985, field_29986, field_29987, field_29988, field_29989, field_29990, field_29991, field_29992, field_29993, field_29994, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Modifier Constructor Description ItemEntity(EntityType<? extends ItemEntity> type, World world)
private
ItemEntity(ItemEntity entity)
ItemEntity(World world, double x, double y, double z)
ItemEntity(World world, double x, double y, double z, ItemStack stack)
-
Method Summary
Modifier and Type Method Description private void
applyLavaBuoyancy()
private void
applyWaterBuoyancy()
private boolean
canMerge()
static boolean
canMerge(ItemStack stack1, ItemStack stack2)
boolean
cannotPickup()
Returns whether the pickup delay of this item entity is greater than 0.ItemEntity
copy()
Packet<?>
createSpawnPacket()
boolean
damage(DamageSource source, float amount)
int
getItemAge()
Returns the number of ticks since this item entity has been created.protected Entity.MoveEffect
getMoveEffect()
Returns the possible effect(s) of an entity moving.Text
getName()
@Nullable UUID
getOwner()
Returns the UUID of the entity to which belongs this item entity, ornull
if there is not.float
getRotation(float tickDelta)
SoundCategory
getSoundCategory()
ItemStack
getStack()
Returns the item stack contained in this item entity.@Nullable UUID
getThrower()
Returns the UUID of the entity which created this item entity by throwing an item, ornull
if it was created otherwise.protected void
initDataTracker()
boolean
isAttackable()
boolean
isFireImmune()
private static void
merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)
private static void
merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)
static ItemStack
merge(ItemStack stack1, ItemStack stack2, int maxCount)
void
method_35190()
@Nullable Entity
moveToWorld(ServerWorld destination)
Moves this entity to another world.boolean
occludeVibrationSignals()
void
onPlayerCollision(PlayerEntity player)
void
onTrackedDataSet(TrackedData<?> data)
void
readCustomDataFromNbt(NbtCompound nbt)
void
resetPickupDelay()
Sets the number of ticks before this item entity can be picked up to 0.void
setCovetedItem()
void
setDespawnImmediately()
void
setOwner(@Nullable UUID uuid)
Sets the owner of this item entity touuid
.void
setPickupDelay(int pickupDelay)
Sets the number of ticks before this item entity can be picked up topickupDelay
.void
setPickupDelayInfinite()
Makes this item entity impossible to be picked up by setting its pickup delay to 32767.void
setStack(ItemStack stack)
Sets the item stack contained in this item entity tostack
.void
setThrower(@Nullable UUID uuid)
Sets the thrower of this item entity touuid
.void
setToDefaultPickupDelay()
Sets the number of ticks before this item entity can be picked up to the default value of 10.void
tick()
private void
tryMerge()
private void
tryMerge(ItemEntity other)
void
writeCustomDataToNbt(NbtCompound nbt)
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraBlockPos, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandItemSlot, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSplashSound, getStandingEyeHeight, getSwimHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29919, method_30951, method_33332, method_33574, method_35049, move, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playSound, playStepSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toNbtList, toNbtList, toString, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbt
-
Field Details
-
STACK
- Mappings:
Namespace Name Mixin selector official c
Lbge;c:Lvy;
intermediary field_7199
Lnet/minecraft/class_1542;field_7199:Lnet/minecraft/class_2940;
named STACK
Lnet/minecraft/entity/ItemEntity;STACK:Lnet/minecraft/entity/data/TrackedData;
-
field_30456
private static final int field_30456- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lbge;d:I
intermediary field_30456
Lnet/minecraft/class_1542;field_30456:I
named field_30456
Lnet/minecraft/entity/ItemEntity;field_30456:I
-
field_30457
private static final int field_30457- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lbge;e:I
intermediary field_30457
Lnet/minecraft/class_1542;field_30457:I
named field_30457
Lnet/minecraft/entity/ItemEntity;field_30457:I
-
field_30458
private static final int field_30458- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lbge;f:I
intermediary field_30458
Lnet/minecraft/class_1542;field_30458:I
named field_30458
Lnet/minecraft/entity/ItemEntity;field_30458:I
-
itemAge
private int itemAgeThe number of ticks since this item entity has been created. It is a short value with keyAge
in the NBT structure.It differs from
Entity.age
.- Mappings:
Namespace Name Mixin selector official ar
Lbge;ar:I
intermediary field_7204
Lnet/minecraft/class_1542;field_7204:I
named itemAge
Lnet/minecraft/entity/ItemEntity;itemAge:I
-
pickupDelay
private int pickupDelay- Mappings:
Namespace Name Mixin selector official as
Lbge;as:I
intermediary field_7202
Lnet/minecraft/class_1542;field_7202:I
named pickupDelay
Lnet/minecraft/entity/ItemEntity;pickupDelay:I
-
health
private int health- Mappings:
Namespace Name Mixin selector official at
Lbge;at:I
intermediary field_7201
Lnet/minecraft/class_1542;field_7201:I
named health
Lnet/minecraft/entity/ItemEntity;health:I
-
thrower
- Mappings:
Namespace Name Mixin selector official au
Lbge;au:Ljava/util/UUID;
intermediary field_7200
Lnet/minecraft/class_1542;field_7200:Ljava/util/UUID;
named thrower
Lnet/minecraft/entity/ItemEntity;thrower:Ljava/util/UUID;
-
owner
- Mappings:
Namespace Name Mixin selector official av
Lbge;av:Ljava/util/UUID;
intermediary field_7205
Lnet/minecraft/class_1542;field_7205:Ljava/util/UUID;
named owner
Lnet/minecraft/entity/ItemEntity;owner:Ljava/util/UUID;
-
uniqueOffset
public final float uniqueOffset- Mappings:
Namespace Name Mixin selector official b
Lbge;b:F
intermediary field_7203
Lnet/minecraft/class_1542;field_7203:F
named uniqueOffset
Lnet/minecraft/entity/ItemEntity;uniqueOffset:F
-
-
Constructor Details
-
ItemEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lasl;<init>(Lasp;Lbvr;)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
-
ItemEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbge;<init>(Lbvr;DDD)V
intermediary <init>
Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDD)V
named <init>
Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
ItemEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbge;<init>(Lbvr;DDDLbpr;)V
intermediary <init>
Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
named <init>
Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
-
ItemEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbge;<init>(Lbge;)V
intermediary <init>
Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1542;)V
named <init>
Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/entity/ItemEntity;)V
-
-
Method Details
-
occludeVibrationSignals
public boolean occludeVibrationSignals()- Overrides:
occludeVibrationSignals
in classEntity
- Mappings:
Namespace Name Mixin selector official aF
Lasl;aF()Z
intermediary method_33189
Lnet/minecraft/class_1297;method_33189()Z
named occludeVibrationSignals
Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in classEntity
- Mappings:
Namespace Name Mixin selector official aE
Lasl;aE()Lasl$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;
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTracker
in classEntity
- Mappings:
Namespace Name Mixin selector official e
Lasl;e()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
tick
public void tick() -
applyWaterBuoyancy
private void applyWaterBuoyancy()- Mappings:
Namespace Name Mixin selector official v
Lbge;v()V
intermediary method_6974
Lnet/minecraft/class_1542;method_6974()V
named applyWaterBuoyancy
Lnet/minecraft/entity/ItemEntity;applyWaterBuoyancy()V
-
applyLavaBuoyancy
private void applyLavaBuoyancy()- Mappings:
Namespace Name Mixin selector official w
Lbge;w()V
intermediary method_24348
Lnet/minecraft/class_1542;method_24348()V
named applyLavaBuoyancy
Lnet/minecraft/entity/ItemEntity;applyLavaBuoyancy()V
-
tryMerge
private void tryMerge()- Mappings:
Namespace Name Mixin selector official y
Lbge;y()V
intermediary method_6973
Lnet/minecraft/class_1542;method_6973()V
named tryMerge
Lnet/minecraft/entity/ItemEntity;tryMerge()V
-
canMerge
private boolean canMerge()- Mappings:
Namespace Name Mixin selector official z
Lbge;z()Z
intermediary method_20397
Lnet/minecraft/class_1542;method_20397()Z
named canMerge
Lnet/minecraft/entity/ItemEntity;canMerge()Z
-
tryMerge
- Mappings:
Namespace Name Mixin selector official a
Lbge;a(Lbge;)V
intermediary method_6972
Lnet/minecraft/class_1542;method_6972(Lnet/minecraft/class_1542;)V
named tryMerge
Lnet/minecraft/entity/ItemEntity;tryMerge(Lnet/minecraft/entity/ItemEntity;)V
-
canMerge
- Mappings:
Namespace Name Mixin selector official a
Lbge;a(Lbpr;Lbpr;)Z
intermediary method_24017
Lnet/minecraft/class_1542;method_24017(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
named canMerge
Lnet/minecraft/entity/ItemEntity;canMerge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
merge
- Mappings:
Namespace Name Mixin selector official a
Lbge;a(Lbpr;Lbpr;I)Lbpr;
intermediary method_24018
Lnet/minecraft/class_1542;method_24018(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1799;
named merge
Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
-
merge
- Mappings:
Namespace Name Mixin selector official a
Lbge;a(Lbge;Lbpr;Lbpr;)V
intermediary method_24016
Lnet/minecraft/class_1542;method_24016(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
named merge
Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
-
merge
private static void merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)- Mappings:
Namespace Name Mixin selector official a
Lbge;a(Lbge;Lbpr;Lbge;Lbpr;)V
intermediary method_18006
Lnet/minecraft/class_1542;method_18006(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;)V
named merge
Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;)V
-
isFireImmune
public boolean isFireImmune()- Overrides:
isFireImmune
in classEntity
- Mappings:
Namespace Name Mixin selector official aG
Lasl;aG()Z
intermediary method_5753
Lnet/minecraft/class_1297;method_5753()Z
named isFireImmune
Lnet/minecraft/entity/Entity;isFireImmune()Z
-
damage
-
writeCustomDataToNbt
- Specified by:
writeCustomDataToNbt
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Lasl;b(Lmv;)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
-
readCustomDataFromNbt
- Specified by:
readCustomDataFromNbt
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lasl;a(Lmv;)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
-
onPlayerCollision
- Overrides:
onPlayerCollision
in classEntity
- Mappings:
Namespace Name Mixin selector official a_
Lasl;a_(Lbjf;)V
intermediary method_5694
Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)V
named onPlayerCollision
Lnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getName
- Specified by:
getName
in interfaceNameable
- Overrides:
getName
in classEntity
- Mappings:
Namespace Name Mixin selector official R
Lark;R()Lon;
intermediary method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
-
isAttackable
public boolean isAttackable()- Overrides:
isAttackable
in classEntity
- Mappings:
Namespace Name Mixin selector official bV
Lasl;bV()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
-
moveToWorld
Moves this entity to another world.Note all entities except server player entities are completely recreated at the destination.
- Overrides:
moveToWorld
in classEntity
- Returns:
- the entity in the other world
- Mappings:
Namespace Name Mixin selector official b
Lasl;b(Labj;)Lasl;
intermediary method_5731
Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
named moveToWorld
Lnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
-
getStack
Returns the item stack contained in this item entity.- Mappings:
Namespace Name Mixin selector official g
Lbge;g()Lbpr;
intermediary method_6983
Lnet/minecraft/class_1542;method_6983()Lnet/minecraft/class_1799;
named getStack
Lnet/minecraft/entity/ItemEntity;getStack()Lnet/minecraft/item/ItemStack;
-
setStack
Sets the item stack contained in this item entity tostack
.- Mappings:
Namespace Name Mixin selector official b
Lbge;b(Lbpr;)V
intermediary method_6979
Lnet/minecraft/class_1542;method_6979(Lnet/minecraft/class_1799;)V
named setStack
Lnet/minecraft/entity/ItemEntity;setStack(Lnet/minecraft/item/ItemStack;)V
-
onTrackedDataSet
- Overrides:
onTrackedDataSet
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lasl;a(Lvy;)V
intermediary method_5674
Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
named onTrackedDataSet
Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
getOwner
Returns the UUID of the entity to which belongs this item entity, ornull
if there is not.If there is one, the owner is the only entity which can pick up this item entity.
- Mappings:
Namespace Name Mixin selector official h
Lbge;h()Ljava/util/UUID;
intermediary method_6986
Lnet/minecraft/class_1542;method_6986()Ljava/util/UUID;
named getOwner
Lnet/minecraft/entity/ItemEntity;getOwner()Ljava/util/UUID;
-
setOwner
Sets the owner of this item entity touuid
.Used when an item is given to an entity, but this entity does not have enough space in its inventory.
- Mappings:
Namespace Name Mixin selector official b
Lbge;b(Ljava/util/UUID;)V
intermediary method_6984
Lnet/minecraft/class_1542;method_6984(Ljava/util/UUID;)V
named setOwner
Lnet/minecraft/entity/ItemEntity;setOwner(Ljava/util/UUID;)V
-
getThrower
Returns the UUID of the entity which created this item entity by throwing an item, ornull
if it was created otherwise.- Mappings:
Namespace Name Mixin selector official i
Lbge;i()Ljava/util/UUID;
intermediary method_6978
Lnet/minecraft/class_1542;method_6978()Ljava/util/UUID;
named getThrower
Lnet/minecraft/entity/ItemEntity;getThrower()Ljava/util/UUID;
-
setThrower
Sets the thrower of this item entity touuid
.- Mappings:
Namespace Name Mixin selector official c
Lbge;c(Ljava/util/UUID;)V
intermediary method_6981
Lnet/minecraft/class_1542;method_6981(Ljava/util/UUID;)V
named setThrower
Lnet/minecraft/entity/ItemEntity;setThrower(Ljava/util/UUID;)V
-
getItemAge
public int getItemAge()Returns the number of ticks since this item entity has been created.Increases every tick. When it equals to 6000 ticks (5 minutes), this item entity disappears.
Unlike Entity.age, it is persistent and not synchronized between the client and the server.
- See Also:
tick()
- Mappings:
Namespace Name Mixin selector official k
Lbge;k()I
intermediary method_6985
Lnet/minecraft/class_1542;method_6985()I
named getItemAge
Lnet/minecraft/entity/ItemEntity;getItemAge()I
-
setToDefaultPickupDelay
public void setToDefaultPickupDelay()Sets the number of ticks before this item entity can be picked up to the default value of 10.- Mappings:
Namespace Name Mixin selector official m
Lbge;m()V
intermediary method_6988
Lnet/minecraft/class_1542;method_6988()V
named setToDefaultPickupDelay
Lnet/minecraft/entity/ItemEntity;setToDefaultPickupDelay()V
-
resetPickupDelay
public void resetPickupDelay()Sets the number of ticks before this item entity can be picked up to 0.- Mappings:
Namespace Name Mixin selector official n
Lbge;n()V
intermediary method_6975
Lnet/minecraft/class_1542;method_6975()V
named resetPickupDelay
Lnet/minecraft/entity/ItemEntity;resetPickupDelay()V
-
setPickupDelayInfinite
public void setPickupDelayInfinite()Makes this item entity impossible to be picked up by setting its pickup delay to 32767.- Mappings:
Namespace Name Mixin selector official o
Lbge;o()V
intermediary method_6989
Lnet/minecraft/class_1542;method_6989()V
named setPickupDelayInfinite
Lnet/minecraft/entity/ItemEntity;setPickupDelayInfinite()V
-
setPickupDelay
public void setPickupDelay(int pickupDelay)Sets the number of ticks before this item entity can be picked up topickupDelay
.- Mappings:
Namespace Name Mixin selector official a
Lbge;a(I)V
intermediary method_6982
Lnet/minecraft/class_1542;method_6982(I)V
named setPickupDelay
Lnet/minecraft/entity/ItemEntity;setPickupDelay(I)V
-
cannotPickup
public boolean cannotPickup()Returns whether the pickup delay of this item entity is greater than 0.- Mappings:
Namespace Name Mixin selector official p
Lbge;p()Z
intermediary method_6977
Lnet/minecraft/class_1542;method_6977()Z
named cannotPickup
Lnet/minecraft/entity/ItemEntity;cannotPickup()Z
-
method_35190
public void method_35190()- Mappings:
Namespace Name Mixin selector official q
Lbge;q()V
intermediary method_35190
Lnet/minecraft/class_1542;method_35190()V
named method_35190
Lnet/minecraft/entity/ItemEntity;method_35190()V
-
setCovetedItem
public void setCovetedItem()- Mappings:
Namespace Name Mixin selector official r
Lbge;r()V
intermediary method_6976
Lnet/minecraft/class_1542;method_6976()V
named setCovetedItem
Lnet/minecraft/entity/ItemEntity;setCovetedItem()V
-
setDespawnImmediately
public void setDespawnImmediately()- Mappings:
Namespace Name Mixin selector official s
Lbge;s()V
intermediary method_6987
Lnet/minecraft/class_1542;method_6987()V
named setDespawnImmediately
Lnet/minecraft/entity/ItemEntity;setDespawnImmediately()V
-
getRotation
public float getRotation(float tickDelta)- Mappings:
Namespace Name Mixin selector official a
Lbge;a(F)F
intermediary method_27314
Lnet/minecraft/class_1542;method_27314(F)F
named getRotation
Lnet/minecraft/entity/ItemEntity;getRotation(F)F
-
createSpawnPacket
- Specified by:
createSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector official O
Lasl;O()Lpf;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
copy
- Mappings:
Namespace Name Mixin selector official u
Lbge;u()Lbge;
intermediary method_29271
Lnet/minecraft/class_1542;method_29271()Lnet/minecraft/class_1542;
named copy
Lnet/minecraft/entity/ItemEntity;copy()Lnet/minecraft/entity/ItemEntity;
-
getSoundCategory
- Overrides:
getSoundCategory
in classEntity
- Mappings:
Namespace Name Mixin selector official cE
Lasl;cE()Laex;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
-