Class ItemBoatBehavior
java.lang.Object
org.cloudburstmc.server.item.behavior.CloudItemBehavior
org.cloudburstmc.server.item.behavior.ItemBoatBehavior
- All Implemented Interfaces:
org.cloudburstmc.api.item.behavior.ItemBehavior
Created by yescallop on 2016/2/13.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetMaxStackSize(org.cloudburstmc.api.item.ItemStack item)org.cloudburstmc.api.item.ItemStackonActivate(org.cloudburstmc.api.item.ItemStack item, 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.CloudItemBehavior
canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getEnchantAbility, getFuelTime, getMaxDurability, getTier, getToolType, getToughness, isArmor, isAxe, isBoots, isChestplate, isHelmet, isHoe, isLeggings, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onClickAir, onRelease, onUse, useOn, useOn
-
Constructor Details
-
ItemBoatBehavior
public ItemBoatBehavior()
-
-
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 item, 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
-
getMaxStackSize
public int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)- Specified by:
getMaxStackSizein interfaceorg.cloudburstmc.api.item.behavior.ItemBehavior- Overrides:
getMaxStackSizein classCloudItemBehavior
-