Method |
Description |
|
__construct ( $id, $meta, integer $count = 1, string $name = "Unknown" ) |
|
|
__toString ( ) |
|
|
addCreativeItem ( Item $item ) |
|
|
addEnchantment ( Enchantment $ench ) |
|
|
canBeActivated ( ) : boolean |
|
|
canBeConsumed ( ) : boolean |
|
|
canBeConsumedBy ( Entity $entity ) : boolean |
|
|
canBePlaced ( ) : boolean |
|
|
clearCreativeItems ( ) |
|
|
clearCustomBlockData ( ) |
|
|
clearCustomName ( ) |
|
|
clearNamedTag ( ) |
|
|
clearRepairCost ( ) |
|
|
deepEquals ( Item $item, boolean $checkDamage = true, boolean $checkCompound = true, boolean $checkCount = false ) : boolean |
|
|
equals ( Item $item, boolean $checkDamage = true, boolean $checkCompound = true, boolean $checkCount = false ) : boolean |
|
|
fromString ( string $str, boolean $multiple = false ) : Item[] | Item |
|
|
get ( $id, $meta, integer $count = 1, $tags = "" ) : Item |
|
|
getArmorValue ( ) |
|
|
getAttackDamage ( ) |
|
|
getBlock ( ) : Block |
|
|
getCompoundTag ( ) : string |
|
|
getCount ( ) : integer |
|
|
getCreativeItem ( integer $index ) : Item |
|
|
getCreativeItemIndex ( Item $item ) : integer |
|
|
getCreativeItems ( ) : array |
|
|
getCustomBlockData ( ) |
|
|
getCustomName ( ) : string |
|
|
getDamage ( ) |
|
|
getDestroySpeed ( Block $block, Player $player ) |
|
|
getEnchantment ( integer $id ) : Enchantment | null |
|
|
getEnchantmentLevel ( integer $id ) : Int |
|
|
getEnchantments ( ) : array |
|
|
getFuelTime ( ) |
|
|
getId ( ) : integer |
|
|
getMaxDurability ( ) : integer | boolean |
|
|
getMaxStackSize ( ) : integer |
|
|
getModifyAttackDamage ( Entity $target ) |
|
|
getName ( ) : string |
|
|
getNamedTag ( ) |
|
|
getNamedTagEntry ( $name ) |
|
|
getRepairCost ( ) : integer |
|
|
hasCompoundTag ( ) : boolean |
|
|
hasCustomBlockData ( ) : boolean |
|
|
hasCustomName ( ) : boolean |
|
|
hasEnchantment ( integer $id, integer $level = 1, boolean $compareLevel = false ) : boolean |
|
|
hasEnchantments ( ) : boolean |
|
|
hasRepairCost ( ) : boolean |
|
|
init ( $readFromJson = false ) |
|
|
isArmor ( ) |
|
|
isAxe ( ) |
|
|
isBoots ( ) |
|
|
isChestplate ( ) |
|
|
isCreativeItem ( Item $item ) : boolean |
|
|
isHelmet ( ) |
|
|
isHoe ( ) |
|
|
isLeggings ( ) |
|
|
isPickaxe ( ) |
|
|
isPlaceable ( ) : boolean |
|
|
isShears ( ) |
|
|
isShovel ( ) |
|
|
isSword ( ) |
|
|
isTool ( ) : boolean |
|
|
onActivate ( Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz ) |
|
|
onConsume ( Entity $entity ) |
|
|
removeCreativeItem ( Item $item ) |
|
|
setCompoundTag ( $tags ) |
|
|
setCount ( integer $count ) |
|
|
setCustomBlockData ( CompoundTag $compound ) |
|
|
setCustomName ( string $name ) |
|
|
setDamage ( $meta ) |
|
|
setNamedTag ( CompoundTag $tag ) |
|
|
setRepairCost ( integer $cost ) |
|
|
useOn ( Entity | Block $object ) : boolean |
|
|