Uses of Class
net.minecraft.entity.ItemEntity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of ItemEntity in net.minecraft.block
Modifier and TypeMethodDescriptionprivate static void
Block.dropStack
(World world, Supplier<ItemEntity> itemEntitySupplier, ItemStack stack) -
Uses of ItemEntity in net.minecraft.block.entity
Modifier and TypeMethodDescriptionstatic List
<ItemEntity> HopperBlockEntity.getInputItemEntities
(World world, Hopper hopper) Modifier and TypeMethodDescriptionstatic boolean
HopperBlockEntity.extract
(Inventory inventory, ItemEntity itemEntity) -
Uses of ItemEntity in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionvoid
ItemEntityRenderer.updateRenderState
(ItemEntity itemEntity, ItemEntityRenderState itemEntityRenderState, float float2) -
Uses of ItemEntity in net.minecraft.entity
Modifier and TypeMethodDescriptionItemEntity.copy()
Entity.dropItem
(ServerWorld world, ItemConvertible item) Drops oneitem
at the entity's position.Entity.dropItem
(ServerWorld world, ItemConvertible item, int offsetY) Drops oneitem
at the entity's position with the given Y offset.Entity.dropStack
(ServerWorld world, ItemStack stack) Dropsstack
at the entity's position.Entity.dropStack
(ServerWorld world, ItemStack stack, float yOffset) Dropsstack
at the entity's position with the given Y offset.Modifier and TypeMethodDescriptionprivate static void
ItemEntity.merge
(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack) private static void
ItemEntity.merge
(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2) static void
InventoryOwner.pickUpItem
(ServerWorld world, MobEntity entity, InventoryOwner inventoryOwner, ItemEntity item) void
LivingEntity.triggerItemPickedUpByEntityCriteria
(ItemEntity item) Called to trigger advancement criteria when an entity picks up an item thrown by a player.private void
ItemEntity.tryMerge
(ItemEntity other) -
Uses of ItemEntity in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<ItemEntity> MemoryModuleType.NEAREST_VISIBLE_WANTED_ITEM
-
Uses of ItemEntity in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionAbstractDecorationEntity.dropStack
(ServerWorld world, ItemStack stack, float yOffset) Dropsstack
at the entity's position with the given Y offset. -
Uses of ItemEntity in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionprivate static ItemStack
PiglinBrain.getItemFromStack
(ItemEntity stack) protected void
MobEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected static void
PiglinBrain.loot
(ServerWorld world, PiglinEntity piglin, ItemEntity itemEntity) protected void
PiglinEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
PillagerEntity.loot
(ServerWorld world, ItemEntity itemEntity) -
Uses of ItemEntity in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionstatic final Predicate
<ItemEntity> DolphinEntity.CAN_TAKE
(package private) static final Predicate
<ItemEntity> FoxEntity.PICKABLE_DROP_FILTER
Modifier and TypeMethodDescriptionprivate static boolean
PandaEntity.canEatFromGround
(ItemEntity itemEntity) protected void
AllayEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
DolphinEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
FoxEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
PandaEntity.loot
(ServerWorld world, ItemEntity itemEntity) protected void
VillagerEntity.loot
(ServerWorld world, ItemEntity itemEntity) -
Uses of ItemEntity in net.minecraft.entity.player
Modifier and TypeMethodDescription -
Uses of ItemEntity in net.minecraft.entity.raid
Modifier and TypeFieldDescriptionprivate @Nullable ItemEntity
RaiderEntity.PickUpBannerAsLeaderGoal.bannerItemEntity
Modifier and TypeFieldDescription(package private) static final Predicate
<ItemEntity> RaiderEntity.OBTAINABLE_OMINOUS_BANNER_PREDICATE
Modifier and TypeMethodDescriptionprotected void
RaiderEntity.loot
(ServerWorld world, ItemEntity itemEntity) -
Uses of ItemEntity in net.minecraft.item
Modifier and TypeMethodDescriptionvoid
BlockItem.onItemEntityDestroyed
(ItemEntity entity) Called on the server when anItemEntity
holding this item gets destroyed.void
BundleItem.onItemEntityDestroyed
(ItemEntity entity) Called on the server when anItemEntity
holding this item gets destroyed.void
Item.onItemEntityDestroyed
(ItemEntity entity) Called on the server when anItemEntity
holding this item gets destroyed.void
ItemStack.onItemEntityDestroyed
(ItemEntity entity) static void
ItemUsage.spawnItemContents
(ItemEntity itemEntity, Iterable<ItemStack> contents) Spawns item entity's contents at the item entity's position. -
Uses of ItemEntity in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate @Nullable ItemEntity
ServerPlayerEntity.dropPlayerItem
(ItemStack stack, boolean throwRandomly, boolean retainOwnership) Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.triggerItemPickedUpByEntityCriteria
(ItemEntity item) Called to trigger advancement criteria when an entity picks up an item thrown by a player. -
Uses of ItemEntity in net.minecraft.test
Modifier and TypeMethodDescription