HyCodeYourTale
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)

protectedAssetExtraInfo.Data data
protectedString gatherType
protectedString hitSoundLayerId
protectedtransient int hitSoundLayerIndex
protectedboolean incorrect
protectedfloat power
protectedint quality

Private/Package Fields (2)

privateAssetStore<String, ItemToolSpec, DefaultAssetMap<String, ItemToolSpec>> ASSET_STORE
privateSoftReference<com.hypixel.hytale.protocol.ItemToolSpec> cachedPacket

Related Classes