Class RegistryEntry.Builder

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

public static final class RegistryEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<RegistryEntry.Builder> implements RegistryEntryOrBuilder
A single registry entry (block, entity, item, or biome).
Protobuf type soulfire.v1.RegistryEntry
  • 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<RegistryEntry.Builder>
    • clear

      public RegistryEntry.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<RegistryEntry.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<RegistryEntry.Builder>
    • getDefaultInstanceForType

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

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

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

      public RegistryEntry.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<RegistryEntry.Builder>
    • mergeFrom

      public RegistryEntry.Builder mergeFrom(RegistryEntry other)
    • isInitialized

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

      public RegistryEntry.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<RegistryEntry.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      The namespaced identifier (e.g., "minecraft:diamond_ore").
      
      string id = 1;
      Specified by:
      getId in interface RegistryEntryOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      The namespaced identifier (e.g., "minecraft:diamond_ore").
      
      string id = 1;
      Specified by:
      getIdBytes in interface RegistryEntryOrBuilder
      Returns:
      The bytes for id.
    • setId

      public RegistryEntry.Builder setId(String value)
      The namespaced identifier (e.g., "minecraft:diamond_ore").
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public RegistryEntry.Builder clearId()
      The namespaced identifier (e.g., "minecraft:diamond_ore").
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public RegistryEntry.Builder setIdBytes(com.google.protobuf.ByteString value)
      The namespaced identifier (e.g., "minecraft:diamond_ore").
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
      Human-readable display name.
      
      string display_name = 2;
      Specified by:
      getDisplayName in interface RegistryEntryOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
      Human-readable display name.
      
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface RegistryEntryOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public RegistryEntry.Builder setDisplayName(String value)
      Human-readable display name.
      
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public RegistryEntry.Builder clearDisplayName()
      Human-readable display name.
      
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public RegistryEntry.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
      Human-readable display name.
      
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getIcon

      public String getIcon()
      Optional icon or texture identifier.
      
      string icon = 3;
      Specified by:
      getIcon in interface RegistryEntryOrBuilder
      Returns:
      The icon.
    • getIconBytes

      public com.google.protobuf.ByteString getIconBytes()
      Optional icon or texture identifier.
      
      string icon = 3;
      Specified by:
      getIconBytes in interface RegistryEntryOrBuilder
      Returns:
      The bytes for icon.
    • setIcon

      public RegistryEntry.Builder setIcon(String value)
      Optional icon or texture identifier.
      
      string icon = 3;
      Parameters:
      value - The icon to set.
      Returns:
      This builder for chaining.
    • clearIcon

      public RegistryEntry.Builder clearIcon()
      Optional icon or texture identifier.
      
      string icon = 3;
      Returns:
      This builder for chaining.
    • setIconBytes

      public RegistryEntry.Builder setIconBytes(com.google.protobuf.ByteString value)
      Optional icon or texture identifier.
      
      string icon = 3;
      Parameters:
      value - The bytes for icon to set.
      Returns:
      This builder for chaining.
    • getCategory

      public String getCategory()
      Optional category/group for organizing in UI.
      
      string category = 4;
      Specified by:
      getCategory in interface RegistryEntryOrBuilder
      Returns:
      The category.
    • getCategoryBytes

      public com.google.protobuf.ByteString getCategoryBytes()
      Optional category/group for organizing in UI.
      
      string category = 4;
      Specified by:
      getCategoryBytes in interface RegistryEntryOrBuilder
      Returns:
      The bytes for category.
    • setCategory

      public RegistryEntry.Builder setCategory(String value)
      Optional category/group for organizing in UI.
      
      string category = 4;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public RegistryEntry.Builder clearCategory()
      Optional category/group for organizing in UI.
      
      string category = 4;
      Returns:
      This builder for chaining.
    • setCategoryBytes

      public RegistryEntry.Builder setCategoryBytes(com.google.protobuf.ByteString value)
      Optional category/group for organizing in UI.
      
      string category = 4;
      Parameters:
      value - The bytes for category to set.
      Returns:
      This builder for chaining.