类 ItemEntityPickupEvent.Post
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.player.ItemEntityPickupEvent
net.neoforged.neoforge.event.entity.player.ItemEntityPickupEvent.Post
This event is fired when an
ItemEntity
on the ground has been picked up by the player
and after the item is added to the player's inventory.
This event only fires if part of the item was picked up by the player.
If the remaining item stack is empty, the item entity will be discarded.
This event is only fired on the logical server.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.player.ItemEntityPickupEvent
ItemEntityPickupEvent.Post, ItemEntityPickupEvent.Pre
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns a live reference to the remaining stack held by theItemEntity
.Returns a copy of the original stack, before it was added to the player's inventory.从类继承的方法 net.neoforged.neoforge.event.entity.player.ItemEntityPickupEvent
getItemEntity, getPlayer
-
字段详细资料
-
originalStack
-
-
构造器详细资料
-
Post
-
-
方法详细资料
-
getOriginalStack
Returns a copy of the original stack, before it was added to the player's inventory. Changes to this item stack have no effect on any further processing. -
getCurrentStack
Returns a live reference to the remaining stack held by theItemEntity
.
-