classpublicPriority 1
ItemCategory
com.hypixel.hytale.server.core.asset.type.item.config.ItemCategory
implements JsonAssetWithMap<String, DefaultAssetMap<String, ItemCategory>>, NetworkSerializable
10
Methods
10
Public Methods
9
Fields
2
Constructors
Constants
AssetBuilderCodec<String, ItemCategory>CODEC= CODEC_BUILDER.build()
AssetBuilderCodec.Builder<String, ItemCategory>CODEC_BUILDER= AssetBuilderCodec.builder(
ItemCategory.class,
ItemCategory::new,
Code...
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(ItemCategory::getAssetStore))
Constructors
protected
ItemCategory()public
ItemCategory(String id, String name, String icon, ItemGridInfoDisplayMode infoDisplayMode, ItemCategory[] children)Methods
Public Methods (10)
publicstatic
DefaultAssetMap<String, ItemCategory> getAssetMap()publicstatic
AssetStore<String, ItemCategory, DefaultAssetMap<String, ItemCategory>> getAssetStore()public
ItemCategory[] getChildren()public
String getIcon()public
String getId()public
ItemGridInfoDisplayMode getInfoDisplayMode()public
String getName()public
int getOrder()public
com.hypixel.hytale.protocol.ItemCategory toPacket()@Nonnull
public
String toString()@Nonnull@Override
Fields
Protected Fields (7)
protected
ItemCategory[] childrenprotected
AssetExtraInfo.Data dataprotected
String iconprotected
String idprotected
ItemGridInfoDisplayMode infoDisplayModeprotected
String nameprotected
int orderPrivate/Package Fields (2)
private
AssetStore<String, ItemCategory, DefaultAssetMap<String, ItemCategory>> ASSET_STOREprivate
SoftReference<com.hypixel.hytale.protocol.ItemCategory> cachedPacket