public abstract class ItemProjectile extends ItemType
ItemType.Context| Modifier and Type | Field and Description |
|---|---|
protected org.bukkit.entity.EntityType |
entityType |
| Constructor and Description |
|---|
ItemProjectile(org.bukkit.entity.EntityType entityType) |
| Modifier and Type | Method and Description |
|---|---|
ItemType.Context |
getContext()
Get the context this item can be used in.
|
void |
rightClickAir(GlowPlayer player,
org.bukkit.inventory.ItemStack holding)
Called when a player right-clicks in midair while holding this item.
|
void |
rightClickBlock(GlowPlayer player,
GlowBlock target,
org.bukkit.block.BlockFace face,
org.bukkit.inventory.ItemStack holding,
org.bukkit.util.Vector clickedLoc,
org.bukkit.inventory.EquipmentSlot hand)
Called when a player right-clicks on a block while holding this item.
|
abstract org.bukkit.entity.Projectile |
use(GlowPlayer player,
org.bukkit.inventory.ItemStack holding)
Throws this projectile.
|
getId, getMaterial, getMaxStackSize, getPlaceAs, setId, setMaterial, setMaxStackSize, setPlaceAs, setPlaceAs, toStringpublic ItemType.Context getContext()
ItemTypegetContext in class ItemTypeItemType.Context.BLOCK}public void rightClickAir(GlowPlayer player, org.bukkit.inventory.ItemStack holding)
ItemTyperightClickAir in class ItemTypeplayer - The playerholding - The ItemStack the player was holdingpublic void rightClickBlock(GlowPlayer player, GlowBlock target, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc, org.bukkit.inventory.EquipmentSlot hand)
ItemTyperightClickBlock in class ItemTypeplayer - The playertarget - The block the player right-clickedface - The face on which the click occurredholding - The ItemStack the player was holdingclickedLoc - The coordinates at which the click occurredhand - The hand slot of this itempublic abstract org.bukkit.entity.Projectile use(GlowPlayer player, org.bukkit.inventory.ItemStack holding)
player - the player throwing the projectileholding - the projectile as an itemCopyright © 2021. All rights reserved.