Class DialogItem.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>
com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
com.soulfiremc.grpc.generated.DialogItem.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DialogItemOrBuilder, Cloneable
Enclosing class:
DialogItem

public static final class DialogItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder> implements DialogItemOrBuilder
Item display element in a dialog body.
Protobuf type soulfire.v1.DialogItem
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
    • clear

      public DialogItem.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
    • getDefaultInstanceForType

      public DialogItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DialogItem build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DialogItem buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DialogItem.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>
    • mergeFrom

      public DialogItem.Builder mergeFrom(DialogItem other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
    • mergeFrom

      public DialogItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>
      Throws:
      IOException
    • getItemId

      public String getItemId()
      Minecraft item identifier.
      Example: "minecraft:diamond", "minecraft:netherite_sword"
      
      string item_id = 1;
      Specified by:
      getItemId in interface DialogItemOrBuilder
      Returns:
      The itemId.
    • getItemIdBytes

      public com.google.protobuf.ByteString getItemIdBytes()
      Minecraft item identifier.
      Example: "minecraft:diamond", "minecraft:netherite_sword"
      
      string item_id = 1;
      Specified by:
      getItemIdBytes in interface DialogItemOrBuilder
      Returns:
      The bytes for itemId.
    • setItemId

      public DialogItem.Builder setItemId(String value)
      Minecraft item identifier.
      Example: "minecraft:diamond", "minecraft:netherite_sword"
      
      string item_id = 1;
      Parameters:
      value - The itemId to set.
      Returns:
      This builder for chaining.
    • clearItemId

      public DialogItem.Builder clearItemId()
      Minecraft item identifier.
      Example: "minecraft:diamond", "minecraft:netherite_sword"
      
      string item_id = 1;
      Returns:
      This builder for chaining.
    • setItemIdBytes

      public DialogItem.Builder setItemIdBytes(com.google.protobuf.ByteString value)
      Minecraft item identifier.
      Example: "minecraft:diamond", "minecraft:netherite_sword"
      
      string item_id = 1;
      Parameters:
      value - The bytes for itemId to set.
      Returns:
      This builder for chaining.
    • getCount

      public int getCount()
      Item count/stack size to display.
      
      int32 count = 2;
      Specified by:
      getCount in interface DialogItemOrBuilder
      Returns:
      The count.
    • setCount

      public DialogItem.Builder setCount(int value)
      Item count/stack size to display.
      
      int32 count = 2;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

      public DialogItem.Builder clearCount()
      Item count/stack size to display.
      
      int32 count = 2;
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
      Optional description text below the item.
      
      optional string description = 3;
      Specified by:
      hasDescription in interface DialogItemOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
      Optional description text below the item.
      
      optional string description = 3;
      Specified by:
      getDescription in interface DialogItemOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      Optional description text below the item.
      
      optional string description = 3;
      Specified by:
      getDescriptionBytes in interface DialogItemOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DialogItem.Builder setDescription(String value)
      Optional description text below the item.
      
      optional string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public DialogItem.Builder clearDescription()
      Optional description text below the item.
      
      optional string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DialogItem.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      Optional description text below the item.
      
      optional string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getShowDecoration

      public boolean getShowDecoration()
      Whether to show the item frame decoration around the item.
      Default: true.
      
      bool show_decoration = 4;
      Specified by:
      getShowDecoration in interface DialogItemOrBuilder
      Returns:
      The showDecoration.
    • setShowDecoration

      public DialogItem.Builder setShowDecoration(boolean value)
      Whether to show the item frame decoration around the item.
      Default: true.
      
      bool show_decoration = 4;
      Parameters:
      value - The showDecoration to set.
      Returns:
      This builder for chaining.
    • clearShowDecoration

      public DialogItem.Builder clearShowDecoration()
      Whether to show the item frame decoration around the item.
      Default: true.
      
      bool show_decoration = 4;
      Returns:
      This builder for chaining.
    • getShowTooltip

      public boolean getShowTooltip()
      Whether to show the item tooltip on hover.
      Default: true.
      
      bool show_tooltip = 5;
      Specified by:
      getShowTooltip in interface DialogItemOrBuilder
      Returns:
      The showTooltip.
    • setShowTooltip

      public DialogItem.Builder setShowTooltip(boolean value)
      Whether to show the item tooltip on hover.
      Default: true.
      
      bool show_tooltip = 5;
      Parameters:
      value - The showTooltip to set.
      Returns:
      This builder for chaining.
    • clearShowTooltip

      public DialogItem.Builder clearShowTooltip()
      Whether to show the item tooltip on hover.
      Default: true.
      
      bool show_tooltip = 5;
      Returns:
      This builder for chaining.
    • getWidth

      public int getWidth()
      Display width in pixels.
      Range: 1-256, default: 16.
      
      int32 width = 6;
      Specified by:
      getWidth in interface DialogItemOrBuilder
      Returns:
      The width.
    • setWidth

      public DialogItem.Builder setWidth(int value)
      Display width in pixels.
      Range: 1-256, default: 16.
      
      int32 width = 6;
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public DialogItem.Builder clearWidth()
      Display width in pixels.
      Range: 1-256, default: 16.
      
      int32 width = 6;
      Returns:
      This builder for chaining.
    • getHeight

      public int getHeight()
      Display height in pixels.
      Range: 1-256, default: 16.
      
      int32 height = 7;
      Specified by:
      getHeight in interface DialogItemOrBuilder
      Returns:
      The height.
    • setHeight

      public DialogItem.Builder setHeight(int value)
      Display height in pixels.
      Range: 1-256, default: 16.
      
      int32 height = 7;
      Parameters:
      value - The height to set.
      Returns:
      This builder for chaining.
    • clearHeight

      public DialogItem.Builder clearHeight()
      Display height in pixels.
      Range: 1-256, default: 16.
      
      int32 height = 7;
      Returns:
      This builder for chaining.