Class 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
  • Constructor Details

    • ItemFrameDropItemEvent

      public ItemFrameDropItemEvent(@Nullable Player player, @NotNull Block block, @NotNull BlockEntityItemFrame itemFrame, @NotNull Item item)
      Deprecated.
  • Method Details

    • getPlayer

      @Nullable public Player getPlayer()
      Deprecated.
      Description copied from class: ItemFrameUseEvent
      获取使用物品展示框的玩家 Gets player.
      Overrides:
      getPlayer in class ItemFrameUseEvent
      Returns:
      the player
    • getItemFrame

      @NotNull public BlockEntityItemFrame getItemFrame()
      Deprecated.
      Description copied from class: ItemFrameUseEvent
      获取被使用的物品展示框

      Gets item frame.

      Overrides:
      getItemFrame in class ItemFrameUseEvent
      Returns:
      the item frame
    • getItem

      @NotNull public Item 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 class ItemFrameUseEvent
      Returns:
      the item