Interface CustomItemData

All Known Subinterfaces:
NonVanillaCustomItemData

@Deprecated(since="2.9.3") public interface CustomItemData
Deprecated.
since 2.9.3: use the new CustomItemDefinition
This is used to store data for a custom item.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Gets if the item is allowed to be put into the offhand.
    Deprecated.
     
    Deprecated.
    Gets the item's creative category, or tab id.
    @Nullable String
    Deprecated.
    Gets the item's creative group.
    Deprecated.
    Gets the custom item options of the item.
    boolean
    Deprecated.
    Gets if the item should be displayed as handheld, like a tool.
    Deprecated.
    Gets the item's display name.
    Deprecated.
    Gets the item's icon.
    Deprecated.
    Gets the item's name.
    Deprecated.
    since 2.9.2: render offsets have been deprecated; attachables should be used instead
    Deprecated.
    Gets the item's set of tags that can be used in Molang.
    int
    Deprecated.
    since 2.9.2: setting the texture size is deprecated; use attachables instead
  • Method Details

    • name

      String name()
      Deprecated.
      Gets the item's name.
      Returns:
      the item's name
    • customItemOptions

      CustomItemOptions customItemOptions()
      Deprecated.
      Gets the custom item options of the item.
      Returns:
      the custom item options of the item.
    • displayName

      String displayName()
      Deprecated.
      Gets the item's display name. By default, this is the item's name.
      Returns:
      the item's display name
    • icon

      String icon()
      Deprecated.
      Gets the item's icon. By default, this is the item's name.
      Returns:
      the item's icon
    • allowOffhand

      boolean allowOffhand()
      Deprecated.
      Gets if the item is allowed to be put into the offhand.
      Returns:
      true if the item is allowed to be used in the offhand, false otherwise
    • displayHandheld

      boolean displayHandheld()
      Deprecated.
      Gets if the item should be displayed as handheld, like a tool.
      Returns:
      true if the item should be displayed as handheld, false otherwise
    • creativeCategory

      OptionalInt creativeCategory()
      Deprecated.
      Gets the item's creative category, or tab id.
      Returns:
      the item's creative category
    • creativeGroup

      @Nullable String creativeGroup()
      Deprecated.
      Gets the item's creative group.
      Returns:
      the item's creative group
    • textureSize

      @Deprecated(since="2.9.2") int textureSize()
      Deprecated.
      since 2.9.2: setting the texture size is deprecated; use attachables instead
      Gets the item's texture size. This is to resize the item if the texture is not 16x16.
      Returns:
      the item's texture size
    • renderOffsets

      @Deprecated(since="2.9.2") @Nullable CustomRenderOffsets renderOffsets()
      Deprecated.
      since 2.9.2: render offsets have been deprecated; attachables should be used instead
      Gets the item's render offsets. If it is null, the item will be rendered normally, with no offsets.
      Returns:
      the item's render offsets
    • tags

      Set<String> tags()
      Deprecated.
      Gets the item's set of tags that can be used in Molang. Equivalent to "tag:some_tag"
      Returns:
      the item's tags, if they exist
    • builder

      static CustomItemData.Builder builder()
      Deprecated.