Interface NonVanillaCustomItemData

All Superinterfaces:
CustomItemData

@Deprecated public interface NonVanillaCustomItemData extends CustomItemData
Deprecated.
Represents a completely custom item that is not based on an existing vanilla Minecraft item.
  • Method Details

    • identifier

      String identifier()
      Deprecated.
      Gets the java identifier for this item.
      Returns:
      The java identifier for this item.
    • javaId

      @org.checkerframework.checker.index.qual.NonNegative int javaId()
      Deprecated.
      Gets the java item id of the item.
      Returns:
      the java item id of the item
    • stackSize

      @org.checkerframework.checker.index.qual.NonNegative int stackSize()
      Deprecated.
      Gets the stack size of the item.
      Returns:
      the stack size of the item
    • maxDamage

      int maxDamage()
      Deprecated.
      Gets the max damage of the item.
      Returns:
      the max damage of the item
    • attackDamage

      int attackDamage()
      Deprecated.
      Gets the attack damage of the item. This is purely visual, and only applied to tools
      Returns:
      the attack damage of the item
    • toolType

      @Nullable String toolType()
      Deprecated.
      Gets the tool type of the item.
      Returns:
      the tool type of the item
    • toolTier

      @Deprecated(forRemoval=true) @Nullable String toolTier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      no longer used
    • armorType

      @Nullable String armorType()
      Deprecated.
      Gets the armor type of the item.
      Returns:
      the armor type of the item
    • protectionValue

      int protectionValue()
      Deprecated.
      Gets the armor protection value of the item.
      Returns:
      the armor protection value of the item
    • translationString

      @Nullable String translationString()
      Deprecated.
      Gets the item's translation string.
      Returns:
      the item's translation string
    • repairMaterials

      @Deprecated(forRemoval=true) @Nullable Set<String> repairMaterials()
      Deprecated, for removal: This API element is subject to removal in a future version.
      No longer used.
    • isHat

      boolean isHat()
      Deprecated.
      Gets if the item is a hat. This is used to determine if the item should be rendered on the player's head, and normally allow the player to equip it. This is not meant for armor.
      Returns:
      if the item is a hat
    • isFoil

      boolean isFoil()
      Deprecated.
      Gets if the item is a foil. This is used to determine if the item should be rendered with an enchantment glint effect.
      Returns:
      if the item is a foil
    • isEdible

      boolean isEdible()
      Deprecated.
      Gets if the item is edible.
      Returns:
      if the item is edible
    • canAlwaysEat

      boolean canAlwaysEat()
      Deprecated.
      Gets if the food item can always be eaten.
      Returns:
      if the item is allowed to be eaten all the time
    • isChargeable

      boolean isChargeable()
      Deprecated.
      Gets if the item is chargable, like a bow.
      Returns:
      if the item should act like a chargable item
    • isTool

      @Deprecated default boolean isTool()
      Deprecated.
      Use CustomItemData.displayHandheld() instead. Gets if the item is a tool. This is used to set the render type of the item, if the item is handheld.
      Returns:
      if the item is a tool
    • block

      String block()
      Deprecated.
      Gets the block the item places.
      Returns:
      the block the item places
    • builder

      Deprecated.