Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getItemTooltipTexture(MemorySegment)
- getItemTooltipTexture(MemorySegment, int)
- getItemTooltipArrowTexture(MemorySegment)
- getItemTooltipArrowTexture(MemorySegment, int)
- getSlotTexture(MemorySegment)
- getSlotTexture(MemorySegment, int)
- getBlockSlotTexture(MemorySegment)
- getBlockSlotTexture(MemorySegment, int)
- getSpecialSlotTexture(MemorySegment)
- getSpecialSlotTexture(MemorySegment, int)
- getTextColor(MemorySegment)
- getTextColor(MemorySegment, int)
- getLocalizationKey(MemorySegment)
- getLocalizationKey(MemorySegment, int)
- getVisibleQualityLabel(MemorySegment)
- getVisibleQualityLabel(MemorySegment, int)
- getRenderSpecialSlot(MemorySegment)
- getRenderSpecialSlot(MemorySegment, int)
- getHideFromSearch(MemorySegment)
- getHideFromSearch(MemorySegment, int)
- hasTextColor(MemorySegment, int)
- hasId(MemorySegment, int)
- hasItemTooltipTexture(MemorySegment, int)
- hasItemTooltipArrowTexture(MemorySegment, int)
- hasSlotTexture(MemorySegment, int)
- hasBlockSlotTexture(MemorySegment, int)
- hasSpecialSlotTexture(MemorySegment, int)
- hasLocalizationKey(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ItemQuality
java.lang.Object
com.hypixel.hytale.protocol.ItemQuality
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanstatic final intstatic final intbooleanstatic final intstatic final intboolean -
Constructor Summary
ConstructorsConstructorDescriptionItemQuality(ItemQuality other) ItemQuality(String id, String itemTooltipTexture, String itemTooltipArrowTexture, String slotTexture, String blockSlotTexture, String specialSlotTexture, Color textColor, String localizationKey, boolean visibleQualityLabel, boolean renderSpecialSlot, boolean hideFromSearch) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic Stringstatic StringgetBlockSlotTexture(MemorySegment mem, int offset) static booleanstatic booleangetHideFromSearch(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static Stringstatic StringgetItemTooltipArrowTexture(MemorySegment mem, int offset) static Stringstatic StringgetItemTooltipTexture(MemorySegment mem, int offset) static Stringstatic StringgetLocalizationKey(MemorySegment mem, int offset) static booleanstatic booleangetRenderSpecialSlot(MemorySegment mem, int offset) static Stringstatic StringgetSlotTexture(MemorySegment mem, int offset) static Stringstatic StringgetSpecialSlotTexture(MemorySegment mem, int offset) static Colorstatic ColorgetTextColor(MemorySegment mem, int offset) static booleanstatic booleangetVisibleQualityLabel(MemorySegment mem, int offset) static booleanhasBlockSlotTexture(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasItemTooltipArrowTexture(MemorySegment mem, int offset) static booleanhasItemTooltipTexture(MemorySegment mem, int offset) static booleanhasLocalizationKey(MemorySegment mem, int offset) static booleanhasSlotTexture(MemorySegment mem, int offset) static booleanhasSpecialSlotTexture(MemorySegment mem, int offset) static booleanhasTextColor(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ItemQualitytoObject(MemorySegment mem) static ItemQualitytoObject(MemorySegment mem, int offset) static ItemQualitytoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ItemQuality and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
id
-
itemTooltipTexture
-
itemTooltipArrowTexture
-
slotTexture
-
blockSlotTexture
-
specialSlotTexture
-
textColor
-
localizationKey
-
visibleQualityLabel
public boolean visibleQualityLabel -
renderSpecialSlot
public boolean renderSpecialSlot -
hideFromSearch
public boolean hideFromSearch
-
-
Constructor Details
-
ItemQuality
public ItemQuality() -
ItemQuality
public ItemQuality(@Nullable String id, @Nullable String itemTooltipTexture, @Nullable String itemTooltipArrowTexture, @Nullable String slotTexture, @Nullable String blockSlotTexture, @Nullable String specialSlotTexture, @Nullable Color textColor, @Nullable String localizationKey, boolean visibleQualityLabel, boolean renderSpecialSlot, boolean hideFromSearch) -
ItemQuality
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getId
-
getId
-
getItemTooltipTexture
-
getItemTooltipTexture
-
getItemTooltipArrowTexture
-
getItemTooltipArrowTexture
-
getSlotTexture
-
getSlotTexture
-
getBlockSlotTexture
-
getBlockSlotTexture
-
getSpecialSlotTexture
-
getSpecialSlotTexture
-
getTextColor
-
getTextColor
-
getLocalizationKey
-
getLocalizationKey
-
getVisibleQualityLabel
-
getVisibleQualityLabel
-
getRenderSpecialSlot
-
getRenderSpecialSlot
-
getHideFromSearch
-
getHideFromSearch
-
hasTextColor
-
hasId
-
hasItemTooltipTexture
-
hasItemTooltipArrowTexture
-
hasSlotTexture
-
hasBlockSlotTexture
-
hasSpecialSlotTexture
-
hasLocalizationKey
-
toObject
-
toObject
-
toObject
Decodes one ItemQuality and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-