JavaScript is disabled on your browser.
Description
Method Summary
Method Details
hasBlockState()
getBlockState()
setBlockState(BlockState)
Method Summary
All Methods Instance Methods Abstract Methods
Returns the currently attached block state for this
item or creates a new one if one doesn't exist.
boolean
Returns whether the item has a block state currently
attached to it.
void
Attaches a copy of the passed block state to the item.
addAttributeModifier , addEnchant , addItemFlags , clone , getAdditionalTradeCost , getAsComponentString , getAsString , getAttackRange , getAttributeModifiers , getAttributeModifiers , getAttributeModifiers , getBlocksAttacks , getBreakSound , getConsumable , getCustomModelData , getCustomModelDataComponent , getCustomTagContainer , getDamageResistances , getDamageResistant , getDamageType , getDamageTypeKey , getDisplayName , getEnchantable , getEnchantLevel , getEnchantmentGlintOverride , getEnchants , getEquippable , getFood , getItemFlags , getItemModel , getItemName , getJukeboxPlayable , getKineticWeapon , getLocalizedName , getLore , getMaxStackSize , getMinimumAttackCharge , getPiercingWeapon , getRarity , getSwingAnimation , getTool , getTooltipStyle , getUseCooldown , getUseEffects , getUseRemainder , getWeapon , hasAdditionalTradeCost , hasAttackRange , hasAttributeModifiers , hasBlocksAttacks , hasBreakSound , hasConflictingEnchant , hasConsumable , hasCustomModelData , hasCustomModelDataComponent , hasDamageResistant , hasDamageType , hasDisplayName , hasEnchant , hasEnchantable , hasEnchantmentGlintOverride , hasEnchants , hasEquippable , hasFood , hasItemFlag , hasItemModel , hasItemName , hasJukeboxPlayable , hasKineticWeapon , hasLocalizedName , hasLore , hasMaxStackSize , hasMinimumAttackCharge , hasPiercingWeapon , hasRarity , hasSwingAnimation , hasTool , hasTooltipStyle , hasUseCooldown , hasUseEffects , hasUseRemainder , hasWeapon , isFireResistant , isGlider , isHideTooltip , isUnbreakable , removeAttributeModifier , removeAttributeModifier , removeAttributeModifier , removeEnchant , removeEnchantments , removeItemFlags , setAdditionalTradeCost , setAttackRange , setAttributeModifiers , setBlocksAttacks , setBreakSound , setConsumable , setCustomModelData , setCustomModelDataComponent , setDamageResistant , setDamageResistant , setDamageType , setDamageTypeKey , setDisplayName , setEnchantable , setEnchantmentGlintOverride , setEquippable , setFireResistant , setFood , setGlider , setHideTooltip , setItemModel , setItemName , setJukeboxPlayable , setKineticWeapon , setLocalizedName , setLore , setMaxStackSize , setMinimumAttackCharge , setPiercingWeapon , setRarity , setSwingAnimation , setTool , setTooltipStyle , setUnbreakable , setUseCooldown , setUseEffects , setUseRemainder , setVersion , setWeapon