public class Archer extends CTFBattleClass
| Constructor and Description |
|---|
Archer() |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack[] |
getArmor()
This method must return armor contents array.
Contents of returned array will not be modified in any way. Null values represent no armor for the slot.[0] = Helmet [1] = Chestplate [2] = Leggings [3] = Boots |
org.bukkit.inventory.ItemStack[] |
getEquipment()
This method must return inventory contents array.
Contents of returned array will not be modified in any way. Null values represent no item for the slot.Indexes of items in the returned array will correspond to placement of those items in the inventory. |
void |
onAirLeftClick()
Called when this player left-clicks no block.
|
void |
onAirRightClick()
Called when this player right-clicks no block.
|
void |
onBlockLeftClick(org.bukkit.block.Block block)
Called when this player left-clicks a block.
|
void |
onBlockRightClick(org.bukkit.block.Block block)
Called when this player right-clicks a block.
|
void |
onDefeat(org.bukkit.entity.Player successor)
Called when this player is killed by another player.
|
void |
onDropItem(org.bukkit.entity.Item item)
Called when this players drops an item (default: Q).
|
void |
onEntityHit(org.bukkit.entity.Entity victim,
double damage,
CancelState cancel)
Called when this player hits another entity.
|
void |
onEntityRightClick(org.bukkit.entity.Entity victim)
Called when another entity gets right-clicked by this player.
|
void |
onExplosionCreated(int id,
org.bukkit.block.Block[] blocks)
Called when explosion happens that was earlier created by this instance.
|
void |
onGetHit(org.bukkit.entity.Entity damager,
double damage)
Called when this player is hit by another entity.
|
void |
onInitialization()
Called when this class is first instantiated.
This method can be safely used to add special effects to this player, register essential timers. |
void |
onPlayerKill(org.bukkit.entity.Player victim)
Called when this player kills another player.
|
createExplosion, dropItem, dropItemNaturally, getGameWorld, getLastDamager, getPlayer, getRegisteredTimers, modifyBlock, playEffect, playSound, registerBukkitHandler, registerNewRepeatingTask, resetBlock, setDamager, spawnArrow, spawnCreature, spawnEntity, strikeLightningEffect, unregisterBukkitHandlerpublic org.bukkit.inventory.ItemStack[] getArmor()
CTFBattleClassNull values represent no armor for the slot.getArmor in class CTFBattleClasspublic org.bukkit.inventory.ItemStack[] getEquipment()
CTFBattleClassNull values represent no item for the slot.getEquipment in class CTFBattleClasspublic void onPlayerKill(org.bukkit.entity.Player victim)
CTFBattleClassonPlayerKill in class CTFBattleClassvictim - killed playerpublic void onDefeat(org.bukkit.entity.Player successor)
CTFBattleClassonDefeat in class CTFBattleClasssuccessor - player that killed this playerpublic void onEntityHit(org.bukkit.entity.Entity victim,
double damage,
CancelState cancel)
CTFBattleClassonEntityHit in class CTFBattleClassvictim - entity that was hitdamage - damage done to entitycancel - CancelState object that monitors whether event is canceledpublic void onGetHit(org.bukkit.entity.Entity damager,
double damage)
CTFBattleClassonGetHit in class CTFBattleClassdamager - another entity that hit this playerdamage - damage that was donepublic void onEntityRightClick(org.bukkit.entity.Entity victim)
CTFBattleClassonEntityRightClick in class CTFBattleClassvictim - entity that was right-clickedpublic void onBlockRightClick(org.bukkit.block.Block block)
CTFBattleClassonBlockRightClick in class CTFBattleClassblock - block that was right-clickedpublic void onBlockLeftClick(org.bukkit.block.Block block)
CTFBattleClassonBlockLeftClick in class CTFBattleClassblock - block that was left-clickedpublic void onAirRightClick()
CTFBattleClassonAirRightClick in class CTFBattleClasspublic void onAirLeftClick()
CTFBattleClassonAirLeftClick in class CTFBattleClasspublic void onDropItem(org.bukkit.entity.Item item)
CTFBattleClassonDropItem in class CTFBattleClassitem - item that would be dropped.public void onExplosionCreated(int id,
org.bukkit.block.Block[] blocks)
CTFBattleClassonExplosionCreated in class CTFBattleClassid - ID number of explosionpublic void onInitialization()
CTFBattleClassonInitialization in class CTFBattleClass