public abstract class CloudItemBehavior extends Object implements org.cloudburstmc.api.item.behavior.ItemBehavior
| Constructor and Description |
|---|
CloudItemBehavior() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated() |
boolean |
canBePlaced(org.cloudburstmc.api.item.ItemStack item) |
boolean |
canDestroy(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Identifier identifier) |
boolean |
canPlaceOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Identifier identifier) |
int |
getArmorPoints(org.cloudburstmc.api.item.ItemStack item) |
int |
getAttackDamage(org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.block.BlockState |
getBlock(org.cloudburstmc.api.item.ItemStack item) |
int |
getEnchantAbility(org.cloudburstmc.api.item.ItemStack item) |
short |
getFuelTime(org.cloudburstmc.api.item.ItemStack item) |
int |
getMaxDurability() |
int |
getMaxStackSize(org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.item.TierType |
getTier(org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.item.ToolType |
getToolType(org.cloudburstmc.api.item.ItemStack item) |
int |
getToughness(org.cloudburstmc.api.item.ItemStack item) |
boolean |
isArmor() |
boolean |
isAxe() |
boolean |
isBoots() |
boolean |
isChestplate() |
boolean |
isHelmet() |
boolean |
isHoe() |
boolean |
isLeggings() |
boolean |
isPickaxe() |
boolean |
isShears() |
boolean |
isShovel() |
boolean |
isSword() |
boolean |
isTool(org.cloudburstmc.api.item.ItemStack item) |
boolean |
isUnbreakable(org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.item.ItemStack |
onActivate(org.cloudburstmc.api.item.ItemStack itemStack,
org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.block.Block blockState,
org.cloudburstmc.api.block.Block blockState1,
org.cloudburstmc.api.util.Direction direction,
com.nukkitx.math.vector.Vector3f vector3f,
org.cloudburstmc.api.level.Level level) |
boolean |
onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
Called when a player uses the item on air, for example throwing a projectile.
|
org.cloudburstmc.api.item.ItemStack |
onRelease(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player) |
org.cloudburstmc.api.item.ItemStack |
onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player) |
org.cloudburstmc.api.item.ItemStack |
useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.block.BlockState block) |
org.cloudburstmc.api.item.ItemStack |
useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Entity entity) |
public boolean canBeActivated()
canBeActivated in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean canPlaceOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Identifier identifier)
canPlaceOn in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean canDestroy(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.util.Identifier identifier)
canDestroy in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic final boolean canBePlaced(org.cloudburstmc.api.item.ItemStack item)
canBePlaced in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.block.BlockState getBlock(org.cloudburstmc.api.item.ItemStack item)
getBlock in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic short getFuelTime(org.cloudburstmc.api.item.ItemStack item)
getFuelTime in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Entity entity)
useOn in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.block.BlockState block)
useOn in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isTool(org.cloudburstmc.api.item.ItemStack item)
isTool in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getMaxDurability()
getMaxDurability in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.TierType getTier(org.cloudburstmc.api.item.ItemStack item)
getTier in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ToolType getToolType(org.cloudburstmc.api.item.ItemStack item)
getToolType in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isPickaxe()
isPickaxe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isAxe()
isAxe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isSword()
isSword in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isShovel()
isShovel in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isHoe()
isHoe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isShears()
isShears in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isArmor()
isArmor in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isHelmet()
isHelmet in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isChestplate()
isChestplate in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isLeggings()
isLeggings in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isBoots()
isBoots in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getEnchantAbility(org.cloudburstmc.api.item.ItemStack item)
getEnchantAbility in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getAttackDamage(org.cloudburstmc.api.item.ItemStack item)
getAttackDamage in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getArmorPoints(org.cloudburstmc.api.item.ItemStack item)
getArmorPoints in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic int getToughness(org.cloudburstmc.api.item.ItemStack item)
getToughness in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean isUnbreakable(org.cloudburstmc.api.item.ItemStack item)
isUnbreakable in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ItemStack onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player)
onUse in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ItemStack onRelease(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player)
onRelease in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic org.cloudburstmc.api.item.ItemStack onActivate(org.cloudburstmc.api.item.ItemStack itemStack,
org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.block.Block blockState,
org.cloudburstmc.api.block.Block blockState1,
org.cloudburstmc.api.util.Direction direction,
com.nukkitx.math.vector.Vector3f vector3f,
org.cloudburstmc.api.level.Level level)
onActivate in interface org.cloudburstmc.api.item.behavior.ItemBehaviorpublic boolean onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
onClickAir in interface org.cloudburstmc.api.item.behavior.ItemBehavioritem - directionVector - directionplayer - playerCopyright © 2021. All rights reserved.