Package cn.nukkit.event.block
Class ItemFrameDropItemEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.block.BlockEvent
cn.nukkit.event.block.ItemFrameUseEvent
cn.nukkit.event.block.ItemFrameDropItemEvent
- All Implemented Interfaces:
Cancellable
@Deprecated
@DeprecationDetails(since="1.19.60-r1",
reason="use ItemFrameUseEvent")
public class ItemFrameDropItemEvent
extends ItemFrameUseEvent
implements Cancellable
Deprecated.
ItemFrameUseEvent的子事件,仅代表物品展示框掉落物品的事件
The event that the item display box is used will be called when an item is dropped
- Since:
- 03.07.2016
- Author:
- Pub4Game
-
Nested Class Summary
Nested classes/interfaces inherited from class cn.nukkit.event.block.ItemFrameUseEvent
ItemFrameUseEvent.Action
-
Field Summary
Fields inherited from class cn.nukkit.event.block.ItemFrameUseEvent
action, item, itemFrame, player
Fields inherited from class cn.nukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionItemFrameDropItemEvent
(Player player, Block block, BlockEntityItemFrame itemFrame, Item item) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetItem()
Deprecated.获取操作中的物品,例如放置物品到物品展示框,获取该物品Deprecated.获取被使用的物品展示框Deprecated.获取使用物品展示框的玩家 Gets player.Methods inherited from class cn.nukkit.event.block.ItemFrameUseEvent
getAction, getHandlers
Methods inherited from class cn.nukkit.event.block.BlockEvent
getBlock
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Constructor Details
-
ItemFrameDropItemEvent
public ItemFrameDropItemEvent(@Nullable Player player, @NotNull Block block, @NotNull BlockEntityItemFrame itemFrame, @NotNull Item item) Deprecated.
-
-
Method Details
-
getPlayer
Deprecated.Description copied from class:ItemFrameUseEvent
获取使用物品展示框的玩家 Gets player.- Overrides:
getPlayer
in classItemFrameUseEvent
- Returns:
- the player
-
getItemFrame
Deprecated.Description copied from class:ItemFrameUseEvent
获取被使用的物品展示框Gets item frame.
- Overrides:
getItemFrame
in classItemFrameUseEvent
- Returns:
- the item frame
-
getItem
Deprecated.Description copied from class:ItemFrameUseEvent
获取操作中的物品,例如放置物品到物品展示框,获取该物品Get the item in action, e.g. place the item in the item display box and get the item
- Overrides:
getItem
in classItemFrameUseEvent
- Returns:
- the item
-