classpublicPriority 1
ItemToolSpec
com.hypixel.hytale.server.core.asset.type.item.config.ItemToolSpec
implements JsonAssetWithMap<String, DefaultAssetMap<String, ItemToolSpec>>, NetworkSerializable
10
Methods
10
Public Methods
9
Fields
2
Constructors
Constants
AssetCodec<String, ItemToolSpec>CODEC= AssetBuilderCodec.builder(
ItemToolSpec.class,
ItemToolSpec::new,
Code...
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(ItemToolSpec::getAssetStore))
Constructors
protected
ItemToolSpec()public
ItemToolSpec(String gatherType, float power, int quality)Methods
Public Methods (10)
publicstatic
DefaultAssetMap<String, ItemToolSpec> getAssetMap()publicstatic
AssetStore<String, ItemToolSpec, DefaultAssetMap<String, ItemToolSpec>> getAssetStore()public
String getGatherType()public
int getHitSoundLayerIndex()public
String getId()public
float getPower()public
int getQuality()public
boolean isIncorrect()public
com.hypixel.hytale.protocol.ItemToolSpec toPacket()@Nonnull
public
String toString()@Nonnull@Override
Fields
Protected Fields (7)
protected
AssetExtraInfo.Data dataprotected
String gatherTypeprotected
String hitSoundLayerIdprotected
transient int hitSoundLayerIndexprotected
boolean incorrectprotected
float powerprotected
int qualityPrivate/Package Fields (2)
private
AssetStore<String, ItemToolSpec, DefaultAssetMap<String, ItemToolSpec>> ASSET_STOREprivate
SoftReference<com.hypixel.hytale.protocol.ItemToolSpec> cachedPacket