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 TypeMethodDescriptionintButton ID to send to the server when clicking.Optional tooltip/description text with additional details.com.google.protobuf.ByteStringOptional tooltip/description text with additional details.booleanWhether the button is currently disabled (cannot be clicked).Optional item ID for displaying an icon.com.google.protobuf.ByteStringOptional item ID for displaying an icon.getLabel()Display label for the button.com.google.protobuf.ByteStringDisplay label for the button.booleanWhether this button is currently selected/active.booleanOptional tooltip/description text with additional details.booleanOptional item ID for displaying an icon.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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.
-