程序包 cn.nukkit.item

类 ItemFirework

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.ItemFirework
所有已实现的接口:
BlockID, ItemID, Cloneable

public class ItemFirework extends Item
作者:
CreeperFace
  • 构造器详细资料

    • ItemFirework

      public ItemFirework()
    • ItemFirework

      public ItemFirework(Integer meta)
    • ItemFirework

      @PowerNukkitDifference(info="Will not add compound tag automatically") public ItemFirework(Integer meta, int count)
  • 方法详细资料

    • canBeActivated

      public boolean canBeActivated()
      覆盖:
      canBeActivated 在类中 Item
    • onActivate

      public boolean onActivate(Level level, Player player, Block block, Block target, BlockFace face, double fx, double fy, double fz)
      覆盖:
      onActivate 在类中 Item
    • onClickAir

      public boolean onClickAir(Player player, Vector3 directionVector)
      从类复制的说明: Item
      Called when a player uses the item on air, for example throwing a projectile. Returns whether the item was changed, for example count decrease or durability change.
      覆盖:
      onClickAir 在类中 Item
      参数:
      player - player
      directionVector - direction
      返回:
      item changed
    • addExplosion

      public void addExplosion(ItemFirework.FireworkExplosion explosion)
    • clearExplosions

      public void clearExplosions()