Class ItemFlintSteelBehavior
java.lang.Object
org.cloudburstmc.server.item.behavior.CloudItemBehavior
org.cloudburstmc.server.item.behavior.ItemToolBehavior
org.cloudburstmc.server.item.behavior.ItemFlintSteelBehavior
- All Implemented Interfaces:
org.cloudburstmc.api.item.behavior.ItemBehavior
author: MagicDroidX
Nukkit Project
-
Field Summary
Fields inherited from class org.cloudburstmc.server.item.behavior.ItemToolBehavior
DURABILITY_BOW, DURABILITY_DIAMOND, DURABILITY_FISHING_ROD, DURABILITY_FLINT_STEEL, DURABILITY_GOLD, DURABILITY_IRON, DURABILITY_NETHERITE, DURABILITY_SHEARS, DURABILITY_STONE, DURABILITY_TRIDENT, DURABILITY_WOODEN, tierType, toolType, TYPE_AXE, TYPE_HANDS_ONLY, TYPE_NONE, TYPE_PICKAXE, TYPE_SHEARS, TYPE_SHOVEL, TYPE_SWORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintorg.cloudburstmc.api.item.ItemStackonActivate(org.cloudburstmc.api.item.ItemStack itemStack, org.cloudburstmc.api.player.Player player, org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.block.Block target, org.cloudburstmc.api.util.Direction face, com.nukkitx.math.vector.Vector3f clickPos, org.cloudburstmc.api.level.Level level)Methods inherited from class org.cloudburstmc.server.item.behavior.ItemToolBehavior
getEnchantAbility, getMaxStackSize, isAxe, isHoe, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, useOn, useOnMethods inherited from class org.cloudburstmc.server.item.behavior.CloudItemBehavior
canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getFuelTime, getTier, getToolType, getToughness, isArmor, isBoots, isChestplate, isHelmet, isLeggings, onClickAir, onRelease, onUse
-
Constructor Details
-
ItemFlintSteelBehavior
public ItemFlintSteelBehavior()
-
-
Method Details
-
canBeActivated
public boolean canBeActivated()- Specified by:
canBeActivatedin interfaceorg.cloudburstmc.api.item.behavior.ItemBehavior- Overrides:
canBeActivatedin classCloudItemBehavior
-
onActivate
public org.cloudburstmc.api.item.ItemStack onActivate(org.cloudburstmc.api.item.ItemStack itemStack, org.cloudburstmc.api.player.Player player, org.cloudburstmc.api.block.Block block, org.cloudburstmc.api.block.Block target, org.cloudburstmc.api.util.Direction face, com.nukkitx.math.vector.Vector3f clickPos, org.cloudburstmc.api.level.Level level)- Specified by:
onActivatein interfaceorg.cloudburstmc.api.item.behavior.ItemBehavior- Overrides:
onActivatein classCloudItemBehavior
-
getMaxDurability
public int getMaxDurability()- Specified by:
getMaxDurabilityin interfaceorg.cloudburstmc.api.item.behavior.ItemBehavior- Overrides:
getMaxDurabilityin classCloudItemBehavior
-