Class ContainerLayout
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ContainerLayout
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ContainerLayoutOrBuilder, Serializable
@Generated
public final class ContainerLayout
extends com.google.protobuf.GeneratedMessage
implements ContainerLayoutOrBuilder
Complete layout description for an open container menu. Provides all information needed to render the container UI.Protobuf type
soulfire.v1.ContainerLayout- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComplete layout description for an open container menu.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBookPages(int index) Book pages for lectern containers.intBook pages for lectern containers.Book pages for lectern containers.getBookPagesOrBuilder(int index) Book pages for lectern containers.List<? extends BookPageOrBuilder> Book pages for lectern containers.getButtons(int index) Available action buttons for this container.intAvailable action buttons for this container.Available action buttons for this container.getButtonsOrBuilder(int index) Available action buttons for this container.List<? extends ContainerButtonOrBuilder> Available action buttons for this container.Container type identifier for client-specific rendering.com.google.protobuf.ByteStringContainer type identifier for client-specific rendering.intCurrent page being displayed (for lectern).static ContainerLayoutstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ContainerLayout> getRegions(int index) Ordered list of slot regions defining the container layout.intOrdered list of slot regions defining the container layout.Ordered list of slot regions defining the container layout.getRegionsOrBuilder(int index) Ordered list of slot regions defining the container layout.List<? extends SlotRegionOrBuilder> Ordered list of slot regions defining the container layout.intgetTextInputs(int index) Text input fields available in this container.intText input fields available in this container.Text input fields available in this container.getTextInputsOrBuilder(int index) Text input fields available in this container.List<? extends ContainerTextInputOrBuilder> Text input fields available in this container.getTitle()Container title/name displayed at the top.com.google.protobuf.ByteStringContainer title/name displayed at the top.intTotal number of slots in the container.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ContainerLayout.Builderstatic ContainerLayout.BuildernewBuilder(ContainerLayout prototype) protected ContainerLayout.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ContainerLayoutparseDelimitedFrom(InputStream input) static ContainerLayoutparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContainerLayoutparseFrom(byte[] data) static ContainerLayoutparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContainerLayoutparseFrom(com.google.protobuf.ByteString data) static ContainerLayoutparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContainerLayoutparseFrom(com.google.protobuf.CodedInputStream input) static ContainerLayoutparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContainerLayoutparseFrom(InputStream input) static ContainerLayoutparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContainerLayoutparseFrom(ByteBuffer data) static ContainerLayoutparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContainerLayout> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
REGIONS_FIELD_NUMBER
public static final int REGIONS_FIELD_NUMBER- See Also:
-
TOTAL_SLOTS_FIELD_NUMBER
public static final int TOTAL_SLOTS_FIELD_NUMBER- See Also:
-
BUTTONS_FIELD_NUMBER
public static final int BUTTONS_FIELD_NUMBER- See Also:
-
CONTAINER_TYPE_FIELD_NUMBER
public static final int CONTAINER_TYPE_FIELD_NUMBER- See Also:
-
TEXT_INPUTS_FIELD_NUMBER
public static final int TEXT_INPUTS_FIELD_NUMBER- See Also:
-
BOOK_PAGES_FIELD_NUMBER
public static final int BOOK_PAGES_FIELD_NUMBER- See Also:
-
CURRENT_BOOK_PAGE_FIELD_NUMBER
public static final int CURRENT_BOOK_PAGE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTitle
Container title/name displayed at the top. Examples: "Chest", "Crafting Table", "Inventory", custom container names.
string title = 1;- Specified by:
getTitlein interfaceContainerLayoutOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Container title/name displayed at the top. Examples: "Chest", "Crafting Table", "Inventory", custom container names.
string title = 1;- Specified by:
getTitleBytesin interfaceContainerLayoutOrBuilder- Returns:
- The bytes for title.
-
getRegionsList
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2;- Specified by:
getRegionsListin interfaceContainerLayoutOrBuilder
-
getRegionsOrBuilderList
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2;- Specified by:
getRegionsOrBuilderListin interfaceContainerLayoutOrBuilder
-
getRegionsCount
public int getRegionsCount()Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2;- Specified by:
getRegionsCountin interfaceContainerLayoutOrBuilder
-
getRegions
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2;- Specified by:
getRegionsin interfaceContainerLayoutOrBuilder
-
getRegionsOrBuilder
Ordered list of slot regions defining the container layout. Regions are listed in rendering order (typically container slots first, then player inventory).
repeated .soulfire.v1.SlotRegion regions = 2;- Specified by:
getRegionsOrBuilderin interfaceContainerLayoutOrBuilder
-
getTotalSlots
public int getTotalSlots()Total number of slots in the container. Sum of all region slot_counts.
int32 total_slots = 3;- Specified by:
getTotalSlotsin interfaceContainerLayoutOrBuilder- Returns:
- The totalSlots.
-
getButtonsList
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4;- Specified by:
getButtonsListin interfaceContainerLayoutOrBuilder
-
getButtonsOrBuilderList
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4;- Specified by:
getButtonsOrBuilderListin interfaceContainerLayoutOrBuilder
-
getButtonsCount
public int getButtonsCount()Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4;- Specified by:
getButtonsCountin interfaceContainerLayoutOrBuilder
-
getButtons
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4;- Specified by:
getButtonsin interfaceContainerLayoutOrBuilder
-
getButtonsOrBuilder
Available action buttons for this container. Present for: stonecutter (recipes), enchanting table (3 enchant options), loom (patterns), villager trading (trade offers), beacon (effects), etc.
repeated .soulfire.v1.ContainerButton buttons = 4;- Specified by:
getButtonsOrBuilderin interfaceContainerLayoutOrBuilder
-
getContainerType
Container type identifier for client-specific rendering. Values: "inventory", "chest", "dispenser", "hopper", "furnace", "crafting", "anvil", "enchanting", "brewing", "beacon", "shulker", "grindstone", "stonecutter", "loom", "cartography", "smithing", "merchant", "crafter", "lectern", "generic"
string container_type = 5;- Specified by:
getContainerTypein interfaceContainerLayoutOrBuilder- Returns:
- The containerType.
-
getContainerTypeBytes
public com.google.protobuf.ByteString getContainerTypeBytes()Container type identifier for client-specific rendering. Values: "inventory", "chest", "dispenser", "hopper", "furnace", "crafting", "anvil", "enchanting", "brewing", "beacon", "shulker", "grindstone", "stonecutter", "loom", "cartography", "smithing", "merchant", "crafter", "lectern", "generic"
string container_type = 5;- Specified by:
getContainerTypeBytesin interfaceContainerLayoutOrBuilder- Returns:
- The bytes for containerType.
-
getTextInputsList
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6;- Specified by:
getTextInputsListin interfaceContainerLayoutOrBuilder
-
getTextInputsOrBuilderList
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6;- Specified by:
getTextInputsOrBuilderListin interfaceContainerLayoutOrBuilder
-
getTextInputsCount
public int getTextInputsCount()Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6;- Specified by:
getTextInputsCountin interfaceContainerLayoutOrBuilder
-
getTextInputs
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6;- Specified by:
getTextInputsin interfaceContainerLayoutOrBuilder
-
getTextInputsOrBuilder
Text input fields available in this container. Currently only populated for anvil menus.
repeated .soulfire.v1.ContainerTextInput text_inputs = 6;- Specified by:
getTextInputsOrBuilderin interfaceContainerLayoutOrBuilder
-
getBookPagesList
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7;- Specified by:
getBookPagesListin interfaceContainerLayoutOrBuilder
-
getBookPagesOrBuilderList
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7;- Specified by:
getBookPagesOrBuilderListin interfaceContainerLayoutOrBuilder
-
getBookPagesCount
public int getBookPagesCount()Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7;- Specified by:
getBookPagesCountin interfaceContainerLayoutOrBuilder
-
getBookPages
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7;- Specified by:
getBookPagesin interfaceContainerLayoutOrBuilder
-
getBookPagesOrBuilder
Book pages for lectern containers. Contains all pages of the book on the lectern.
repeated .soulfire.v1.BookPage book_pages = 7;- Specified by:
getBookPagesOrBuilderin interfaceContainerLayoutOrBuilder
-
getCurrentBookPage
public int getCurrentBookPage()Current page being displayed (for lectern). Zero-indexed into book_pages.
int32 current_book_page = 8;- Specified by:
getCurrentBookPagein interfaceContainerLayoutOrBuilder- Returns:
- The currentBookPage.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ContainerLayout parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContainerLayout parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContainerLayout parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContainerLayout parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContainerLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ContainerLayout parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ContainerLayout parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ContainerLayout parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ContainerLayout parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ContainerLayout parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ContainerLayout.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-