类 ItemEntity
- java.lang.Object
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.ItemEntity
-
- 所有已实现的接口:
CommandOutput,Nameable,EntityLike
public class ItemEntity extends Entity
- Mappings:
Namespace Name official bgeintermediary net/minecraft/class_1542named net/minecraft/entity/ItemEntity
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intDESPAWN_AGEprivate static intfield_30457private static intfield_30458private inthealthprivate intitemAgeThe number of ticks since this item entity has been created.private UUIDownerprivate intpickupDelayprivate static TrackedData<ItemStack>STACKprivate UUIDthrowerfloatuniqueOffset-
从类继承的字段 net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_29973, field_29974, field_29979, field_29980, field_29981, field_29987, field_29988, field_29989, field_29990, field_29991, field_29992, field_29993, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, PASSENGERS_KEY, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, world, yaw
-
从接口继承的字段 net.minecraft.server.command.CommandOutput
DUMMY
-
-
构造器概要
构造器 限定符 构造器 说明 ItemEntity(EntityType<? extends ItemEntity> type, World world)privateItemEntity(ItemEntity entity)ItemEntity(World world, double x, double y, double z)ItemEntity(World world, double x, double y, double z, ItemStack stack)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapplyLavaBuoyancy()private voidapplyWaterBuoyancy()private booleancanMerge()static booleancanMerge(ItemStack stack1, ItemStack stack2)booleancannotPickup()Returns whether the pickup delay of this item entity is greater than 0.ItemEntitycopy()Packet<?>createSpawnPacket()booleandamage(DamageSource source, float amount)intgetItemAge()Returns the number of ticks since this item entity has been created.protected Entity.MoveEffectgetMoveEffect()Returns the possible effect(s) of an entity moving.TextgetName()@Nullable UUIDgetOwner()Returns the UUID of the entity to which belongs this item entity, ornullif there is not.floatgetRotation(float tickDelta)SoundCategorygetSoundCategory()ItemStackgetStack()Returns the item stack contained in this item entity.@Nullable UUIDgetThrower()Returns the UUID of the entity which created this item entity by throwing an item, ornullif it was created otherwise.protected voidinitDataTracker()booleanisAttackable()booleanisFireImmune()private static voidmerge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)private static voidmerge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)static ItemStackmerge(ItemStack stack1, ItemStack stack2, int maxCount)voidmethod_35190()@Nullable EntitymoveToWorld(ServerWorld destination)Moves this entity to another world.booleanoccludeVibrationSignals()voidonPlayerCollision(PlayerEntity player)voidonTrackedDataSet(TrackedData<?> data)voidreadCustomDataFromNbt(CompoundTag nbt)voidresetPickupDelay()Sets the number of ticks before this item entity can be picked up to 0.voidsetCovetedItem()voidsetDespawnImmediately()voidsetOwner(@Nullable UUID uuid)Sets the owner of this item entity touuid.voidsetPickupDelay(int pickupDelay)Sets the number of ticks before this item entity can be picked up topickupDelay.voidsetPickupDelayInfinite()Makes this item entity impossible to be picked up by setting its pickup delay to 32767.voidsetStack(ItemStack stack)Sets the item stack contained in this item entity tostack.voidsetThrower(@Nullable UUID uuid)Sets the thrower of this item entity touuid.voidsetToDefaultPickupDelay()Sets the number of ticks before this item entity can be picked up to the default value of 10.voidtick()private voidtryMerge()private voidtryMerge(ItemEntity other)voidwriteCustomDataToNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, 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, getLeashOffset, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, 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_30951, method_36209, 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, 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
-
-
-
-
字段详细资料
-
STACK
private static final TrackedData<ItemStack> STACK
- Mappings:
Namespace Name Mixin selector official cLbge;c:Lvy;intermediary field_7199Lnet/minecraft/class_1542;field_7199:Lnet/minecraft/class_2940;named STACKLnet/minecraft/entity/ItemEntity;STACK:Lnet/minecraft/entity/data/TrackedData;
-
DESPAWN_AGE
private static final int DESPAWN_AGE
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLbge;d:Iintermediary field_30456Lnet/minecraft/class_1542;field_30456:Inamed DESPAWN_AGELnet/minecraft/entity/ItemEntity;DESPAWN_AGE:I
-
field_30457
private static final int field_30457
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLbge;e:Iintermediary field_30457Lnet/minecraft/class_1542;field_30457:Inamed field_30457Lnet/minecraft/entity/ItemEntity;field_30457:I
-
field_30458
private static final int field_30458
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLbge;f:Iintermediary field_30458Lnet/minecraft/class_1542;field_30458:Inamed field_30458Lnet/minecraft/entity/ItemEntity;field_30458:I
-
itemAge
private int itemAge
The number of ticks since this item entity has been created. It is a short value with keyAgein the NBT structure.It differs from
Entity.age.- Mappings:
Namespace Name Mixin selector official arLbge;ar:Iintermediary field_7204Lnet/minecraft/class_1542;field_7204:Inamed itemAgeLnet/minecraft/entity/ItemEntity;itemAge:I
-
pickupDelay
private int pickupDelay
- Mappings:
Namespace Name Mixin selector official asLbge;as:Iintermediary field_7202Lnet/minecraft/class_1542;field_7202:Inamed pickupDelayLnet/minecraft/entity/ItemEntity;pickupDelay:I
-
health
private int health
- Mappings:
Namespace Name Mixin selector official atLbge;at:Iintermediary field_7201Lnet/minecraft/class_1542;field_7201:Inamed healthLnet/minecraft/entity/ItemEntity;health:I
-
thrower
private UUID thrower
- Mappings:
Namespace Name Mixin selector official auLbge;au:Ljava/util/UUID;intermediary field_7200Lnet/minecraft/class_1542;field_7200:Ljava/util/UUID;named throwerLnet/minecraft/entity/ItemEntity;thrower:Ljava/util/UUID;
-
owner
private UUID owner
- Mappings:
Namespace Name Mixin selector official avLbge;av:Ljava/util/UUID;intermediary field_7205Lnet/minecraft/class_1542;field_7205:Ljava/util/UUID;named ownerLnet/minecraft/entity/ItemEntity;owner:Ljava/util/UUID;
-
uniqueOffset
public final float uniqueOffset
- Mappings:
Namespace Name Mixin selector official bLbge;b:Fintermediary field_7203Lnet/minecraft/class_1542;field_7203:Fnamed uniqueOffsetLnet/minecraft/entity/ItemEntity;uniqueOffset:F
-
-
构造器详细资料
-
ItemEntity
public ItemEntity(EntityType<? extends ItemEntity> type, World world)
- Mappings:
Namespace Name Mixin selector official <init>Lasl;<init>(Lasp;Lbvr;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
ItemEntity
public ItemEntity(World world, double x, double y, double z)
- Mappings:
Namespace Name Mixin selector official <init>Lbge;<init>(Lbvr;DDD)Vintermediary <init>Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDD)Vnamed <init>Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
ItemEntity
public ItemEntity(World world, double x, double y, double z, ItemStack stack)
- Mappings:
Namespace Name Mixin selector official <init>Lbge;<init>(Lbvr;DDDLbpr;)Vintermediary <init>Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
-
ItemEntity
private ItemEntity(ItemEntity entity)
- Mappings:
Namespace Name Mixin selector official <init>Lbge;<init>(Lbge;)Vintermediary <init>Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1542;)Vnamed <init>Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/entity/ItemEntity;)V
-
-
方法详细资料
-
occludeVibrationSignals
public boolean occludeVibrationSignals()
- 覆盖:
occludeVibrationSignals在类中Entity- Mappings:
Namespace Name Mixin selector official aGLasl;aG()Zintermediary method_33189Lnet/minecraft/class_1297;method_33189()Znamed occludeVibrationSignalsLnet/minecraft/entity/Entity;occludeVibrationSignals()Z
-
getMoveEffect
protected Entity.MoveEffect getMoveEffect()
Returns the possible effect(s) of an entity moving.- 覆盖:
getMoveEffect在类中Entity- Mappings:
Namespace Name Mixin selector official aFLasl;aF()Lasl$b;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
-
initDataTracker
protected void initDataTracker()
- 指定者:
initDataTracker在类中Entity- Mappings:
Namespace Name Mixin selector official eLasl;e()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
tick
public void tick()
-
applyWaterBuoyancy
private void applyWaterBuoyancy()
- Mappings:
Namespace Name Mixin selector official vLbge;v()Vintermediary method_6974Lnet/minecraft/class_1542;method_6974()Vnamed applyWaterBuoyancyLnet/minecraft/entity/ItemEntity;applyWaterBuoyancy()V
-
applyLavaBuoyancy
private void applyLavaBuoyancy()
- Mappings:
Namespace Name Mixin selector official wLbge;w()Vintermediary method_24348Lnet/minecraft/class_1542;method_24348()Vnamed applyLavaBuoyancyLnet/minecraft/entity/ItemEntity;applyLavaBuoyancy()V
-
tryMerge
private void tryMerge()
- Mappings:
Namespace Name Mixin selector official yLbge;y()Vintermediary method_6973Lnet/minecraft/class_1542;method_6973()Vnamed tryMergeLnet/minecraft/entity/ItemEntity;tryMerge()V
-
canMerge
private boolean canMerge()
- Mappings:
Namespace Name Mixin selector official zLbge;z()Zintermediary method_20397Lnet/minecraft/class_1542;method_20397()Znamed canMergeLnet/minecraft/entity/ItemEntity;canMerge()Z
-
tryMerge
private void tryMerge(ItemEntity other)
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbge;)Vintermediary method_6972Lnet/minecraft/class_1542;method_6972(Lnet/minecraft/class_1542;)Vnamed tryMergeLnet/minecraft/entity/ItemEntity;tryMerge(Lnet/minecraft/entity/ItemEntity;)V
-
canMerge
public static boolean canMerge(ItemStack stack1, ItemStack stack2)
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbpr;Lbpr;)Zintermediary method_24017Lnet/minecraft/class_1542;method_24017(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Znamed canMergeLnet/minecraft/entity/ItemEntity;canMerge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
merge
public static ItemStack merge(ItemStack stack1, ItemStack stack2, int maxCount)
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbpr;Lbpr;I)Lbpr;intermediary method_24018Lnet/minecraft/class_1542;method_24018(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1799;named mergeLnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
-
merge
private static void merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)
- Mappings:
Namespace Name Mixin selector official aLbge;a(Lbge;Lbpr;Lbpr;)Vintermediary method_24016Lnet/minecraft/class_1542;method_24016(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vnamed mergeLnet/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 aLbge;a(Lbge;Lbpr;Lbge;Lbpr;)Vintermediary method_18006Lnet/minecraft/class_1542;method_18006(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;)Vnamed mergeLnet/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()
- 覆盖:
isFireImmune在类中Entity- Mappings:
Namespace Name Mixin selector official aHLasl;aH()Zintermediary method_5753Lnet/minecraft/class_1297;method_5753()Znamed isFireImmuneLnet/minecraft/entity/Entity;isFireImmune()Z
-
damage
public boolean damage(DamageSource source, float amount)
-
writeCustomDataToNbt
public void writeCustomDataToNbt(CompoundTag nbt)
- 指定者:
writeCustomDataToNbt在类中Entity- Mappings:
Namespace Name Mixin selector official bLasl;b(Lmv;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromNbt
public void readCustomDataFromNbt(CompoundTag nbt)
- 指定者:
readCustomDataFromNbt在类中Entity- Mappings:
Namespace Name Mixin selector official aLasl;a(Lmv;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
onPlayerCollision
public void onPlayerCollision(PlayerEntity player)
- 覆盖:
onPlayerCollision在类中Entity- Mappings:
Namespace Name Mixin selector official a_Lasl;a_(Lbjf;)Vintermediary method_5694Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)Vnamed onPlayerCollisionLnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getName
public Text getName()
-
isAttackable
public boolean isAttackable()
- 覆盖:
isAttackable在类中Entity- Mappings:
Namespace Name Mixin selector official bWLasl;bW()Zintermediary method_5732Lnet/minecraft/class_1297;method_5732()Znamed isAttackableLnet/minecraft/entity/Entity;isAttackable()Z
-
moveToWorld
@Nullable public @Nullable Entity moveToWorld(ServerWorld destination)
Moves this entity to another world.Note all entities except server player entities are completely recreated at the destination.
- 覆盖:
moveToWorld在类中Entity- 返回:
- the entity in the other world
- Mappings:
Namespace Name Mixin selector official bLasl;b(Labj;)Lasl;intermediary method_5731Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;named moveToWorldLnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
-
getStack
public ItemStack getStack()
Returns the item stack contained in this item entity.- Mappings:
Namespace Name Mixin selector official gLbge;g()Lbpr;intermediary method_6983Lnet/minecraft/class_1542;method_6983()Lnet/minecraft/class_1799;named getStackLnet/minecraft/entity/ItemEntity;getStack()Lnet/minecraft/item/ItemStack;
-
setStack
public void setStack(ItemStack stack)
Sets the item stack contained in this item entity tostack.- Mappings:
Namespace Name Mixin selector official bLbge;b(Lbpr;)Vintermediary method_6979Lnet/minecraft/class_1542;method_6979(Lnet/minecraft/class_1799;)Vnamed setStackLnet/minecraft/entity/ItemEntity;setStack(Lnet/minecraft/item/ItemStack;)V
-
onTrackedDataSet
public void onTrackedDataSet(TrackedData<?> data)
- 覆盖:
onTrackedDataSet在类中Entity- Mappings:
Namespace Name Mixin selector official aLasl;a(Lvy;)Vintermediary method_5674Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)Vnamed onTrackedDataSetLnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
getOwner
@Nullable public @Nullable UUID getOwner()
Returns the UUID of the entity to which belongs this item entity, ornullif 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 hLbge;h()Ljava/util/UUID;intermediary method_6986Lnet/minecraft/class_1542;method_6986()Ljava/util/UUID;named getOwnerLnet/minecraft/entity/ItemEntity;getOwner()Ljava/util/UUID;
-
setOwner
public void setOwner(@Nullable @Nullable UUID uuid)
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 bLbge;b(Ljava/util/UUID;)Vintermediary method_6984Lnet/minecraft/class_1542;method_6984(Ljava/util/UUID;)Vnamed setOwnerLnet/minecraft/entity/ItemEntity;setOwner(Ljava/util/UUID;)V
-
getThrower
@Nullable public @Nullable UUID getThrower()
Returns the UUID of the entity which created this item entity by throwing an item, ornullif it was created otherwise.- Mappings:
Namespace Name Mixin selector official iLbge;i()Ljava/util/UUID;intermediary method_6978Lnet/minecraft/class_1542;method_6978()Ljava/util/UUID;named getThrowerLnet/minecraft/entity/ItemEntity;getThrower()Ljava/util/UUID;
-
setThrower
public void setThrower(@Nullable @Nullable UUID uuid)
Sets the thrower of this item entity touuid.- Mappings:
Namespace Name Mixin selector official cLbge;c(Ljava/util/UUID;)Vintermediary method_6981Lnet/minecraft/class_1542;method_6981(Ljava/util/UUID;)Vnamed setThrowerLnet/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.
- 另请参阅:
tick()- Mappings:
Namespace Name Mixin selector official kLbge;k()Iintermediary method_6985Lnet/minecraft/class_1542;method_6985()Inamed getItemAgeLnet/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 mLbge;m()Vintermediary method_6988Lnet/minecraft/class_1542;method_6988()Vnamed setToDefaultPickupDelayLnet/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 nLbge;n()Vintermediary method_6975Lnet/minecraft/class_1542;method_6975()Vnamed resetPickupDelayLnet/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 oLbge;o()Vintermediary method_6989Lnet/minecraft/class_1542;method_6989()Vnamed setPickupDelayInfiniteLnet/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 aLbge;a(I)Vintermediary method_6982Lnet/minecraft/class_1542;method_6982(I)Vnamed setPickupDelayLnet/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 pLbge;p()Zintermediary method_6977Lnet/minecraft/class_1542;method_6977()Znamed cannotPickupLnet/minecraft/entity/ItemEntity;cannotPickup()Z
-
method_35190
public void method_35190()
- Mappings:
Namespace Name Mixin selector official qLbge;q()Vintermediary method_35190Lnet/minecraft/class_1542;method_35190()Vnamed method_35190Lnet/minecraft/entity/ItemEntity;method_35190()V
-
setCovetedItem
public void setCovetedItem()
- Mappings:
Namespace Name Mixin selector official rLbge;r()Vintermediary method_6976Lnet/minecraft/class_1542;method_6976()Vnamed setCovetedItemLnet/minecraft/entity/ItemEntity;setCovetedItem()V
-
setDespawnImmediately
public void setDespawnImmediately()
- Mappings:
Namespace Name Mixin selector official sLbge;s()Vintermediary method_6987Lnet/minecraft/class_1542;method_6987()Vnamed setDespawnImmediatelyLnet/minecraft/entity/ItemEntity;setDespawnImmediately()V
-
getRotation
public float getRotation(float tickDelta)
- Mappings:
Namespace Name Mixin selector official aLbge;a(F)Fintermediary method_27314Lnet/minecraft/class_1542;method_27314(F)Fnamed getRotationLnet/minecraft/entity/ItemEntity;getRotation(F)F
-
createSpawnPacket
public Packet<?> createSpawnPacket()
- 指定者:
createSpawnPacket在类中Entity- Mappings:
Namespace Name Mixin selector official OLasl;O()Lpf;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
copy
public ItemEntity copy()
- Mappings:
Namespace Name Mixin selector official uLbge;u()Lbge;intermediary method_29271Lnet/minecraft/class_1542;method_29271()Lnet/minecraft/class_1542;named copyLnet/minecraft/entity/ItemEntity;copy()Lnet/minecraft/entity/ItemEntity;
-
getSoundCategory
public SoundCategory getSoundCategory()
- 覆盖:
getSoundCategory在类中Entity- Mappings:
Namespace Name Mixin selector official cFLasl;cF()Laex;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
-
-