public class ItemMinecartBehavior extends CloudItemBehavior
| Modifier and Type | Field and Description |
|---|---|
protected org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.vehicle.Minecart> |
minecartType |
| Constructor and Description |
|---|
ItemMinecartBehavior() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated() |
int |
getMaxStackSize(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 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) |
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, useOnprotected final org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.vehicle.Minecart> minecartType
public boolean canBeActivated()
canBeActivated in interface org.cloudburstmc.api.item.behavior.ItemBehaviorcanBeActivated in class CloudItemBehaviorpublic 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)
onActivate in interface org.cloudburstmc.api.item.behavior.ItemBehavioronActivate in class CloudItemBehaviorpublic int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxStackSize in class CloudItemBehaviorCopyright © 2021. All rights reserved.