HyCodeYourTale
classpublicPriority 1

Item

com.hypixel.hytale.server.core.asset.type.item.config.Item

implements JsonAssetWithMap<String, DefaultAssetMap<String, Item>>, NetworkSerializable

57

Methods

57

Public Methods

59

Fields

5

Constructors

Constants

StringUNKNOWN_TEXTURE= "Items/Unknown.png"

Constructors

package-private
Item(Item item)
package-private
Item(String key)
protected
Item()
public
Item(String id)
public
Item(Item other)

Methods

Public Methods (57)

public
void collectRecipesToGenerate(Collection<CraftingRecipe> recipes)
public
boolean dropsOnDeath()
public
ItemArmor getArmor()
publicstatic
DefaultAssetMap<String, Item> getAssetMap()
publicstatic
AssetStore<String, Item, DefaultAssetMap<String, Item>> getAssetStore()
public
String getBlockId()
public
BlockSelectorToolData getBlockSelectorToolData()
public
BuilderToolData getBuilderToolData()
public
String[] getCategories()
public
boolean getClipsGeometry()
public
AssetExtraInfo.Data getData()
public
String getDescriptionTranslationKey()
@Nonnull
public
int[] getDisplayEntityStatsHUD()
public
String getDroppedItemAnimation()
public
double getDurabilityLossOnHit()
public
double getFuelQuality()
public
ItemGlider getGlider()
public
String getIcon()
public
AssetIconProperties getIconProperties()
public
String getId()
public
InteractionConfiguration getInteractionConfig()
public
Map<String, String> getInteractionVars()
public
Map<InteractionType, String> getInteractions()
public
ItemEntityConfig getItemEntityConfig()
public
String getItemIdForState(String state)
@Nullable
public
int getItemLevel()
public
int getItemSoundSetIndex()
public
ItemStackContainerConfig getItemStackContainerConfig()
@Nonnull
public
ColorLight getLight()
public
double getMaxDurability()
public
int getMaxStack()
public
String getModel()
public
String getPlayerAnimationsId()
public
PortalKey getPortalKey()
@Nullable
public
ItemPullbackConfig getPullbackConfig()
public
int getQualityIndex()
public
boolean getRenderDeployablePreview()
public
ItemResourceType[] getResourceTypes()
public
String getReticleId()
public
float getScale()
public
String getSoundEventId()
public
int getSoundEventIndex()
public
String getStateForItem(Item item)
@Nullable
public
String getStateForItem(String key)
@Nullable
public
String getTexture()
public
ItemTool getTool()
public
String getTranslationKey()
@Nonnull
public
ItemTranslationProperties getTranslationProperties()
public
boolean getUsePlayerAnimations()
public
ItemUtility getUtility()
@Nonnull
public
ItemWeapon getWeapon()
public
boolean hasBlockType()
public
boolean hasRecipesToGenerate()
public
boolean isConsumable()
public
boolean isState()
public
boolean isVariant()
public
ItemBase toPacket()
@Nonnull

Fields

Protected Fields (57)

protectedString animation
protectedItemArmor armor
protectedString blockId
protectedBlockSelectorToolData blockSelectorToolData
protectedMap<String, String> blockToState
protectedBuilderToolData builderToolData
protectedString[] categories
protectedboolean clipsGeometry
protectedboolean consumable
protectedAssetExtraInfo.Data data
protectedint[] displayEntityStatsHUD
protectedboolean dropOnDeath
protectedString droppedItemAnimation
protecteddouble durabilityLossOnHit
protectedModelParticle[] firstPersonParticles
protecteddouble fuelQuality
protectedItemGlider glider
protectedboolean hasBlockType
protectedString icon
protectedAssetIconProperties iconProperties
protectedString id
protectedInteractionConfiguration interactionConfig
protectedMap<String, ItemAppearanceCondition[]> itemAppearanceConditions
protectedItemEntityConfig itemEntityConfig
protectedint itemLevel
protectedString itemSoundSetId
protectedtransient int itemSoundSetIndex
protectedItemStackContainerConfig itemStackContainerConfig
protectedColorLight light
protecteddouble maxDurability
protectedint maxStack
protectedString model
protectedModelParticle[] particles
protectedString playerAnimationsId
protectedPortalKey portalKey
protectedItemPullbackConfig pullbackConfig
protectedString qualityId
protectedint qualityIndex
protectedString[] rawDisplayEntityStatsHUD
protectedCraftingRecipe recipeToGenerate
protectedboolean renderDeployablePreview
protectedItemResourceType[] resourceTypes
protectedString reticleId
protectedint reticleIndex
protectedfloat scale
protectedString set
protectedString soundEventId
protectedtransient int soundEventIndex
protectedMap<String, String> stateToBlock
protectedString texture
protectedItemTool tool
protectedModelTrail[] trails
protectedItemTranslationProperties translationProperties
protectedboolean usePlayerAnimations
protectedItemUtility utility
protectedboolean variant
protectedItemWeapon weapon

Private/Package Fields (2)

privateAssetStore<String, Item, DefaultAssetMap<String, Item>> ASSET_STORE
privatetransient SoftReference<ItemBase> cachedPacket

Related Classes