public class ItemProjectileBehavior extends CloudItemBehavior
| Modifier and Type | Field and Description |
|---|---|
protected org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.Projectile> |
projectileEntityType |
protected float |
throwForce |
| Constructor and Description |
|---|
ItemProjectileBehavior() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
onProjectileCreation(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Projectile projectile) |
canBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getEnchantAbility, getFuelTime, getMaxDurability, getMaxStackSize, getTier, getToolType, getToughness, isArmor, isAxe, isBoots, isChestplate, isHelmet, isHoe, isLeggings, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onActivate, onRelease, onUse, useOn, useOnprotected final org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.Projectile> projectileEntityType
protected final float throwForce
public boolean onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
CloudItemBehavioronClickAir in interface org.cloudburstmc.api.item.behavior.ItemBehavioronClickAir in class CloudItemBehaviordirectionVector - directionplayer - playerprotected void onProjectileCreation(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Projectile projectile)
Copyright © 2021. All rights reserved.