Interface ContainerButtonOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ContainerButton, ContainerButton.Builder

@Generated public interface ContainerButtonOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Button ID to send to the server when clicking.
    Optional tooltip/description text with additional details.
    com.google.protobuf.ByteString
    Optional tooltip/description text with additional details.
    boolean
    Whether the button is currently disabled (cannot be clicked).
    Optional item ID for displaying an icon.
    com.google.protobuf.ByteString
    Optional item ID for displaying an icon.
    Display label for the button.
    com.google.protobuf.ByteString
    Display label for the button.
    boolean
    Whether this button is currently selected/active.
    boolean
    Optional tooltip/description text with additional details.
    boolean
    Optional item ID for displaying an icon.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getButtonId

      int getButtonId()
      Button ID to send to the server when clicking.
      The meaning depends on the container type.
      
      int32 button_id = 1;
      Returns:
      The buttonId.
    • getLabel

      String getLabel()
      Display label for the button.
      Examples: "Enchant Slot 1", "Recipe 5", "8x Emerald -> 1x Diamond Pickaxe"
      
      string label = 2;
      Returns:
      The label.
    • getLabelBytes

      com.google.protobuf.ByteString getLabelBytes()
      Display label for the button.
      Examples: "Enchant Slot 1", "Recipe 5", "8x Emerald -> 1x Diamond Pickaxe"
      
      string label = 2;
      Returns:
      The bytes for label.
    • hasIconItemId

      boolean hasIconItemId()
      Optional item ID for displaying an icon.
      Example: "minecraft:enchanted_book", "minecraft:stone_bricks"
      
      optional string icon_item_id = 3;
      Returns:
      Whether the iconItemId field is set.
    • getIconItemId

      String getIconItemId()
      Optional item ID for displaying an icon.
      Example: "minecraft:enchanted_book", "minecraft:stone_bricks"
      
      optional string icon_item_id = 3;
      Returns:
      The iconItemId.
    • getIconItemIdBytes

      com.google.protobuf.ByteString getIconItemIdBytes()
      Optional item ID for displaying an icon.
      Example: "minecraft:enchanted_book", "minecraft:stone_bricks"
      
      optional string icon_item_id = 3;
      Returns:
      The bytes for iconItemId.
    • hasDescription

      boolean hasDescription()
      Optional tooltip/description text with additional details.
      Examples: "Requires 3 lapis, 30 levels", "Out of stock"
      
      optional string description = 4;
      Returns:
      Whether the description field is set.
    • getDescription

      String getDescription()
      Optional tooltip/description text with additional details.
      Examples: "Requires 3 lapis, 30 levels", "Out of stock"
      
      optional string description = 4;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
      Optional tooltip/description text with additional details.
      Examples: "Requires 3 lapis, 30 levels", "Out of stock"
      
      optional string description = 4;
      Returns:
      The bytes for description.
    • getDisabled

      boolean getDisabled()
      Whether the button is currently disabled (cannot be clicked).
      Reasons vary by container: missing materials, out of stock, insufficient levels, etc.
      
      bool disabled = 5;
      Returns:
      The disabled.
    • getSelected

      boolean getSelected()
      Whether this button is currently selected/active.
      Used for toggle-style buttons or to show current selection.
      
      bool selected = 6;
      Returns:
      The selected.