Class ItemMinecartBehavior
java.lang.Object
org.cloudburstmc.server.item.behavior.CloudItemBehavior
org.cloudburstmc.server.item.behavior.ItemMinecartBehavior
- All Implemented Interfaces:
org.cloudburstmc.api.item.behavior.ItemBehavior
author: MagicDroidX
Nukkit Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.vehicle.Minecart> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetMaxStackSize(org.cloudburstmc.api.item.ItemStack item)org.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.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
-
Field Details
-
minecartType
protected final org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.vehicle.Minecart> minecartType
-
-
Constructor Details
-
ItemMinecartBehavior
public ItemMinecartBehavior()
-
-
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
-
getMaxStackSize
public int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)- Specified by:
getMaxStackSizein interfaceorg.cloudburstmc.api.item.behavior.ItemBehavior- Overrides:
getMaxStackSizein classCloudItemBehavior
-