Package net.minecraft.world.entity.npc
Interface InventoryCarrier
- All Known Implementing Classes:
AbstractVillager
,Allay
,Piglin
,Pillager
,Villager
,WanderingTrader
public interface InventoryCarrier
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
pickUpItem
(Mob p_219612_, InventoryCarrier p_219613_, ItemEntity p_219614_) default void
readInventoryFromTag
(CompoundTag p_253699_, HolderLookup.Provider p_331899_) default void
writeInventoryToTag
(CompoundTag p_254428_, HolderLookup.Provider p_328974_)
-
Field Details
-
TAG_INVENTORY
- See Also:
-
-
Method Details
-
getInventory
SimpleContainer getInventory() -
pickUpItem
-
readInventoryFromTag
-
writeInventoryToTag
-