Uses of Class
net.minecraft.world.entity.item.ItemEntity
Packages that use ItemEntity
Package
Description
-
Uses of ItemEntity in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type ItemEntityModifier and TypeMethodDescriptionItemEntityRenderer.getTextureLocation
(ItemEntity pEntity) Returns the location of an entity's texture.void
ItemEntityRenderer.render
(ItemEntity pEntity, float pEntityYaw, float pPartialTicks, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) -
Uses of ItemEntity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return ItemEntityModifier and TypeMethodDescription -
Uses of ItemEntity in net.minecraft.server.level
Methods in net.minecraft.server.level that return ItemEntityModifier and TypeMethodDescriptionCreates and drops the provided item.Methods in net.minecraft.server.level with parameters of type ItemEntity -
Uses of ItemEntity in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type ItemEntityModifier and TypeFieldDescriptionprivate Collection
<ItemEntity> Entity.captureDrops
Neo: Short-lived holder of dropped item entities.static final EntityType
<ItemEntity> EntityType.ITEM
Methods in net.minecraft.world.entity that return ItemEntityModifier and TypeMethodDescriptionEntity.spawnAtLocation
(ItemStack pStack) Entity.spawnAtLocation
(ItemStack pStack, float pOffsetY) Drops an item at the position of the entity.Entity.spawnAtLocation
(ItemLike pItem) Entity.spawnAtLocation
(ItemLike pItem, int pOffsetY) Methods in net.minecraft.world.entity that return types with arguments of type ItemEntityModifier and TypeMethodDescriptionEntity.captureDrops()
Entity.captureDrops
(Collection<ItemEntity> value) Methods in net.minecraft.world.entity with parameters of type ItemEntityModifier and TypeMethodDescriptionvoid
LivingEntity.onItemPickup
(ItemEntity pItemEntity) protected void
Mob.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece.Method parameters in net.minecraft.world.entity with type arguments of type ItemEntity -
Uses of ItemEntity in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type ItemEntityModifier and TypeFieldDescriptionstatic final MemoryModuleType
<ItemEntity> MemoryModuleType.NEAREST_VISIBLE_WANTED_ITEM
-
Uses of ItemEntity in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal with type parameters of type ItemEntityModifier and TypeFieldDescriptionstatic final Predicate
<ItemEntity> Dolphin.ALLOWED_ITEMS
(package private) static final Predicate
<ItemEntity> Fox.ALLOWED_ITEMS
(package private) static final Predicate
<ItemEntity> Panda.PANDA_ITEMS
Methods in net.minecraft.world.entity.animal with parameters of type ItemEntityModifier and TypeMethodDescriptionprotected void
Dolphin.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece.protected void
Fox.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece.protected void
Panda.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece. -
Uses of ItemEntity in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type ItemEntityModifier and TypeMethodDescriptionprotected void
Allay.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece. -
Uses of ItemEntity in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return ItemEntityModifier and TypeMethodDescriptionHangingEntity.spawnAtLocation
(ItemStack pStack, float pOffsetY) Drops an item at the position of the entity. -
Uses of ItemEntity in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item that return ItemEntityMethods in net.minecraft.world.entity.item with parameters of type ItemEntityModifier and TypeMethodDescriptionprivate static void
ItemEntity.merge
(ItemEntity pDestinationEntity, ItemStack pDestinationStack, ItemEntity pOriginEntity, ItemStack pOriginStack) private static void
ItemEntity.merge
(ItemEntity pDestinationEntity, ItemStack pDestinationStack, ItemStack pOriginStack) private void
ItemEntity.tryToMerge
(ItemEntity pItemEntity) Constructors in net.minecraft.world.entity.item with parameters of type ItemEntityConstructor parameters in net.minecraft.world.entity.item with type arguments of type ItemEntityModifierConstructorDescriptionItemEntity
(EntityType<? extends ItemEntity> pEntityType, Level pLevel) -
Uses of ItemEntity in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type ItemEntityModifier and TypeMethodDescriptionprotected void
Pillager.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece. -
Uses of ItemEntity in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type ItemEntityModifier and TypeMethodDescriptionprotected void
Piglin.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece.protected static void
PiglinAi.pickUpItem
(Piglin pPiglin, ItemEntity pItemEntity) private static ItemStack
PiglinAi.removeOneItemFromItemEntity
(ItemEntity pItemEntity) -
Uses of ItemEntity in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type ItemEntityModifier and TypeMethodDescriptionstatic void
InventoryCarrier.pickUpItem
(Mob pMob, InventoryCarrier pCarrier, ItemEntity pItemEntity) protected void
Villager.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece. -
Uses of ItemEntity in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return ItemEntityModifier and TypeMethodDescriptionDrops an item into the world.Creates and drops the provided item. -
Uses of ItemEntity in net.minecraft.world.entity.raid
Fields in net.minecraft.world.entity.raid with type parameters of type ItemEntityModifier and TypeFieldDescription(package private) static final Predicate
<ItemEntity> Raider.ALLOWED_ITEMS
Methods in net.minecraft.world.entity.raid with parameters of type ItemEntityModifier and TypeMethodDescriptionprotected void
Raider.pickUpItem
(ItemEntity pItemEntity) Tests if this entity should pick up a weapon or an armor piece. -
Uses of ItemEntity in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type ItemEntityModifier and TypeMethodDescriptionstatic void
ItemUtils.onContainerDestroyed
(ItemEntity pContainer, Iterable<ItemStack> pContents) void
BlockItem.onDestroyed
(ItemEntity pItemEntity) void
BundleItem.onDestroyed
(ItemEntity pItemEntity) void
Item.onDestroyed
(ItemEntity pItemEntity) Deprecated.void
ItemStack.onDestroyed
(ItemEntity pItemEntity) Deprecated.Forge: Use invalid input: '{@linkplain net.neoforged.neoforge.common.extensions.IItemStackExtension#' onDestroyed(ItemEntity, net.minecraft.world.damagesource.DamageSource) damage source sensitive version} -
Uses of ItemEntity in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type ItemEntityModifier and TypeFieldDescriptionprivate static List
<ItemEntity> Block.capturedDrops
Neo: Short-lived holder of dropped item entities.Methods in net.minecraft.world.level.block that return types with arguments of type ItemEntityModifier and TypeMethodDescriptionprivate static List
<ItemEntity> Block.stopCapturingDrops()
Ends the drop capture process by settingBlock.capturedDrops
to null and returning the old list.Method parameters in net.minecraft.world.level.block with type arguments of type ItemEntityModifier and TypeMethodDescriptionprivate static void
Block.popResource
(Level pLevel, Supplier<ItemEntity> pItemEntitySupplier, ItemStack pStack) -
Uses of ItemEntity in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return types with arguments of type ItemEntityModifier and TypeMethodDescriptionstatic List
<ItemEntity> HopperBlockEntity.getItemsAtAndAbove
(Level pLevel, Hopper pHopper) Methods in net.minecraft.world.level.block.entity with parameters of type ItemEntityModifier and TypeMethodDescriptionstatic boolean
HopperBlockEntity.addItem
(Container pContainer, ItemEntity pItem) -
Uses of ItemEntity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return ItemEntityModifier and TypeMethodDescriptionstatic @Nullable ItemEntity
CommonHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) Method parameters in net.neoforged.neoforge.common with type arguments of type ItemEntityModifier and TypeMethodDescriptionstatic void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when block drops (items and experience) are determined.static boolean
CommonHooks.onLivingDrops
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) -
Uses of ItemEntity in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return types with arguments of type ItemEntityModifier and TypeMethodDescription@Nullable Collection
<ItemEntity> IEntityExtension.captureDrops()
IEntityExtension.captureDrops
(@Nullable Collection<ItemEntity> captureDrops) Methods in net.neoforged.neoforge.common.extensions with parameters of type ItemEntityModifier and TypeMethodDescriptiondefault void
IItemExtension.onDestroyed
(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.default void
IItemStackExtension.onDestroyed
(ItemEntity itemEntity, DamageSource damageSource) Called when an item entity for this stack is destroyed.default boolean
IItemExtension.onEntityItemUpdate
(ItemStack stack, ItemEntity entity) Called by the default implemetation of EntityItem's onUpdate method, allowing for cleaner control over the update of the item without having to write a subclass.default boolean
IItemStackExtension.onEntityItemUpdate
(ItemEntity entity) Called by the default implemetation of EntityItem's onUpdate method, allowing for cleaner control over the update of the item without having to write a subclass.Method parameters in net.neoforged.neoforge.common.extensions with type arguments of type ItemEntityModifier and TypeMethodDescriptionIEntityExtension.captureDrops
(@Nullable Collection<ItemEntity> captureDrops) -
Uses of ItemEntity in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type ItemEntityModifier and TypeMethodDescriptionstatic void
EventHooks.fireItemPickupPost
(ItemEntity itemEntity, Player player, ItemStack copy) Called inplayerTouch(Player)
after an item was successfully picked up.static ItemEntityPickupEvent.Pre
EventHooks.fireItemPickupPre
(ItemEntity itemEntity, Player player) Called inplayerTouch(Player)
before any other processing occurs.static int
EventHooks.onItemExpire
(ItemEntity entity) -
Uses of ItemEntity in net.neoforged.neoforge.event.entity.item
Fields in net.neoforged.neoforge.event.entity.item declared as ItemEntityMethods in net.neoforged.neoforge.event.entity.item that return ItemEntityConstructors in net.neoforged.neoforge.event.entity.item with parameters of type ItemEntityModifierConstructorDescriptionItemEvent
(ItemEntity itemEntity) Creates a new event for anItemEntity
.ItemExpireEvent
(ItemEntity itemEntity) Creates a new event for an expiringItemEntity
.ItemTossEvent
(ItemEntity entityItem, Player player) Creates a new event for EntityItems tossed by a player. -
Uses of ItemEntity in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type ItemEntityMethods in net.neoforged.neoforge.event.entity.living that return types with arguments of type ItemEntityConstructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type ItemEntityModifierConstructorDescriptionLivingDropsEvent
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, boolean recentlyHit) -
Uses of ItemEntity in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ItemEntityMethods in net.neoforged.neoforge.event.entity.player that return ItemEntityModifier and TypeMethodDescriptionItemEntityPickupEvent.getItemEntity()
Returns theItemEntity
that was collided with.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type ItemEntityModifierConstructorDescriptionItemEntityPickupEvent
(Player player, ItemEntity item) Post
(Player player, ItemEntity item, ItemStack originalStack) Pre
(Player player, ItemEntity item) -
Uses of ItemEntity in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level with type parameters of type ItemEntityMethods in net.neoforged.neoforge.event.level that return types with arguments of type ItemEntityModifier and TypeMethodDescriptionBlockDropsEvent.getDrops()
Returns a mutable list of item entities that will be dropped by this block.Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type ItemEntityModifierConstructorDescriptionBlockDropsEvent
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEvent -
Uses of ItemEntity in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type ItemEntityModifier and TypeMethodDescriptionvoid
FluidType.setItemMovement
(ItemEntity entity) Performs what to do when an item is in a fluid.
(ItemEntity, DamageSource) Use damage source sensitive version