Uses of Class
net.minecraft.world.entity.item.ItemEntity
Package
Description
-
Uses of ItemEntity in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionItemEntityRenderer.getTextureLocation
(ItemEntity p_115034_) void
ItemEntityRenderer.render
(ItemEntity p_115036_, float p_115037_, float p_115038_, PoseStack p_115039_, MultiBufferSource p_115040_, int p_115041_) -
Uses of ItemEntity in net.minecraft.gametest.framework
Modifier and TypeMethodDescription -
Uses of ItemEntity in net.minecraft.server.level
Modifier and TypeMethodDescription -
Uses of ItemEntity in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate Collection
<ItemEntity> Entity.captureDrops
static final EntityType
<ItemEntity> EntityType.ITEM
Modifier and TypeMethodDescriptionEntity.spawnAtLocation
(ItemStack p_19984_) Entity.spawnAtLocation
(ItemStack p_19985_, float p_19986_) Entity.spawnAtLocation
(ItemLike p_19999_) Entity.spawnAtLocation
(ItemLike p_20001_, int p_20002_) Modifier and TypeMethodDescriptionEntity.captureDrops()
Entity.captureDrops
(Collection<ItemEntity> value) Modifier and TypeMethodDescriptionvoid
LivingEntity.onItemPickup
(ItemEntity p_21054_) protected void
Mob.pickUpItem
(ItemEntity p_21471_) -
Uses of ItemEntity in net.minecraft.world.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<ItemEntity> MemoryModuleType.NEAREST_VISIBLE_WANTED_ITEM
-
Uses of ItemEntity in net.minecraft.world.entity.animal
Modifier 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
Modifier and TypeMethodDescriptionprotected void
Dolphin.pickUpItem
(ItemEntity p_28357_) protected void
Fox.pickUpItem
(ItemEntity p_28514_) protected void
Panda.pickUpItem
(ItemEntity p_29121_) -
Uses of ItemEntity in net.minecraft.world.entity.animal.allay
-
Uses of ItemEntity in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionHangingEntity.spawnAtLocation
(ItemStack p_31722_, float p_31723_) -
Uses of ItemEntity in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionprivate static void
ItemEntity.merge
(ItemEntity p_32018_, ItemStack p_32019_, ItemEntity p_32020_, ItemStack p_32021_) private static void
ItemEntity.merge
(ItemEntity p_32023_, ItemStack p_32024_, ItemStack p_32025_) private void
ItemEntity.tryToMerge
(ItemEntity p_32016_) ModifierConstructorDescriptionItemEntity
(EntityType<? extends ItemEntity> p_31991_, Level p_31992_) -
Uses of ItemEntity in net.minecraft.world.entity.monster
-
Uses of ItemEntity in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprotected void
Piglin.pickUpItem
(ItemEntity p_34743_) protected static void
PiglinAi.pickUpItem
(Piglin p_34844_, ItemEntity p_34845_) private static ItemStack
PiglinAi.removeOneItemFromItemEntity
(ItemEntity p_34823_) -
Uses of ItemEntity in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionstatic void
InventoryCarrier.pickUpItem
(Mob p_219612_, InventoryCarrier p_219613_, ItemEntity p_219614_) protected void
Villager.pickUpItem
(ItemEntity p_35467_) -
Uses of ItemEntity in net.minecraft.world.entity.player
Modifier and TypeMethodDescription -
Uses of ItemEntity in net.minecraft.world.entity.raid
Modifier and TypeFieldDescription(package private) static final Predicate
<ItemEntity> Raider.ALLOWED_ITEMS
-
Uses of ItemEntity in net.minecraft.world.item
Modifier and TypeMethodDescriptionstatic void
ItemUtils.onContainerDestroyed
(ItemEntity p_150953_, Iterable<ItemStack> p_340959_) void
BlockItem.onDestroyed
(ItemEntity p_150700_) void
BundleItem.onDestroyed
(ItemEntity p_150728_) void
Item.onDestroyed
(ItemEntity p_150887_) Deprecated.void
ItemStack.onDestroyed
(ItemEntity p_150925_) Deprecated.Forge: Use damage source sensitive version -
Uses of ItemEntity in net.minecraft.world.level.block
Modifier and TypeFieldDescriptionprivate static List
<ItemEntity> Block.capturedDrops
Short-lived holder of dropped item entities.Modifier and TypeMethodDescriptionprivate static List
<ItemEntity> Block.stopCapturingDrops()
Ends the drop capture process by settingBlock.capturedDrops
to null and returning the old list.Modifier and TypeMethodDescriptionprivate static void
Block.popResource
(Level p_152441_, Supplier<ItemEntity> p_152442_, ItemStack p_152443_) -
Uses of ItemEntity in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionstatic List
<ItemEntity> HopperBlockEntity.getItemsAtAndAbove
(Level p_155590_, Hopper p_155591_) Modifier and TypeMethodDescriptionstatic boolean
HopperBlockEntity.addItem
(Container p_59332_, ItemEntity p_59333_) -
Uses of ItemEntity in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic @Nullable ItemEntity
CommonHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) Modifier 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, int lootingLevel, boolean recentlyHit) -
Uses of ItemEntity in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescription@Nullable Collection
<ItemEntity> IEntityExtension.captureDrops()
IEntityExtension.captureDrops
(@Nullable Collection<ItemEntity> captureDrops) Modifier 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.Modifier and TypeMethodDescriptionIEntityExtension.captureDrops
(@Nullable Collection<ItemEntity> captureDrops) -
Uses of ItemEntity in net.neoforged.neoforge.event
Modifier 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, ItemStack item) -
Uses of ItemEntity in net.neoforged.neoforge.event.entity.item
ModifierConstructorDescriptionItemEvent
(ItemEntity itemEntity) Creates a new event for anItemEntity
.ItemExpireEvent
(ItemEntity entityItem, int extraLife) Creates a new event for an expiring EntityItem.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
ModifierConstructorDescriptionLivingDropsEvent
(LivingEntity entity, DamageSource source, Collection<ItemEntity> drops, int lootingLevel, boolean recentlyHit) -
Uses of ItemEntity in net.neoforged.neoforge.event.entity.player
Modifier and TypeMethodDescriptionItemEntityPickupEvent.getItemEntity()
Returns theItemEntity
that was collided with.ModifierConstructorDescriptionItemEntityPickupEvent
(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
Modifier and TypeMethodDescriptionBlockDropsEvent.getDrops()
Returns a mutable list of item entities that will be dropped by this block.ModifierConstructorDescriptionBlockDropsEvent
(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
Modifier and TypeMethodDescriptionvoid
FluidType.setItemMovement
(ItemEntity entity) Performs what to do when an item is in a fluid.
invalid reference