Class ItemDye

java.lang.Object
cn.nukkit.item.Item
cn.nukkit.item.ItemDye
All Implemented Interfaces:
BlockID, ItemID, Cloneable

public class ItemDye extends Item
Author:
MagicDroidX (Nukkit Project)
  • Field Details

    • WHITE

      @Deprecated public static final int WHITE
      Deprecated.
    • ORANGE

      @Deprecated public static final int ORANGE
      Deprecated.
    • MAGENTA

      @Deprecated public static final int MAGENTA
      Deprecated.
    • LIGHT_BLUE

      @Deprecated public static final int LIGHT_BLUE
      Deprecated.
    • YELLOW

      @Deprecated public static final int YELLOW
      Deprecated.
    • LIME

      @Deprecated public static final int LIME
      Deprecated.
    • PINK

      @Deprecated public static final int PINK
      Deprecated.
    • GRAY

      @Deprecated public static final int GRAY
      Deprecated.
    • LIGHT_GRAY

      @Deprecated public static final int LIGHT_GRAY
      Deprecated.
    • CYAN

      @Deprecated public static final int CYAN
      Deprecated.
    • PURPLE

      @Deprecated public static final int PURPLE
      Deprecated.
    • BLUE

      @Deprecated public static final int BLUE
      Deprecated.
    • BROWN

      @Deprecated public static final int BROWN
      Deprecated.
    • GREEN

      @Deprecated public static final int GREEN
      Deprecated.
    • RED

      @Deprecated public static final int RED
      Deprecated.
    • BLACK

      @Deprecated public static final int BLACK
      Deprecated.
    • BONE_MEAL

      @Deprecated @PowerNukkitXOnly @Since("1.6.0.0-PNX") public static final int BONE_MEAL
      Deprecated.
  • Constructor Details

    • ItemDye

      public ItemDye()
    • ItemDye

      public ItemDye(Integer meta)
    • ItemDye

      public ItemDye(DyeColor dyeColor)
    • ItemDye

      public ItemDye(DyeColor dyeColor, int amount)
    • ItemDye

      public ItemDye(Integer meta, int amount)
    • ItemDye

      @PowerNukkitOnly @Since("1.4.0.0-PN") protected ItemDye(int id, Integer meta, int count, String name)
  • Method Details

    • isFertilizer

      @Since("1.4.0.0-PN") @PowerNukkitOnly public boolean isFertilizer()
      Description copied from class: Item
      如果为true,这个物品可以如骨粉一样减少作物成长时间

      When true, this item can be used to reduce growing times like a bone meal.

      Overrides:
      isFertilizer in class Item
      Returns:
      true if it can act like a bone meal
    • isLapisLazuli

      @Since("1.4.0.0-PN") @PowerNukkitOnly public boolean isLapisLazuli()
    • isCocoaBeans

      @Since("1.4.0.0-PN") @PowerNukkitOnly public boolean isCocoaBeans()
    • getColor

      @Deprecated public static BlockColor getColor(int meta)
      Deprecated.
    • getDyeColor

      public DyeColor getDyeColor()
    • getColorName

      @Deprecated public static String getColorName(int meta)
      Deprecated.