public class Tank extends CTFBattleClass
Archer| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
Description |
| Constructor and Description |
|---|
Tank() |
| 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.inventory.ItemStack itemstack)
Called when this players drops an item (default: Q).
Note that no item is actually dropped. |
void |
onEntityHit(org.bukkit.entity.Entity victim,
DamageState damage,
CancelState cancel,
DamageType damagetype)
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 |
onGetHit(org.bukkit.entity.Entity damager,
double damage,
DamageType damagetype)
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.
|
void |
onProjectileLaunch(org.bukkit.entity.Projectile p,
CancelState cancel) |
createBlockExplosion, dropItem, dropItemNaturally, getGameWorld, getInGamePlayers, getLastDamager, getPlayer, getPlayerTeam, getRegisteredTimers, modifyBlock, registerBukkitHandler, registerNewDelayedTask, registerNewRepeatingTask, resetBlock, setDamager, spawnArrow, spawnCreature, spawnEntity, 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,
DamageState damage,
CancelState cancel,
DamageType damagetype)
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,
DamageType damagetype)
CTFBattleClassonGetHit in class CTFBattleClassdamager - another entity that hit this playerdamage - final 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.inventory.ItemStack itemstack)
CTFBattleClassonDropItem in class CTFBattleClassitemstack - itemstack of an item that would be droppedpublic void onProjectileLaunch(org.bukkit.entity.Projectile p,
CancelState cancel)
onProjectileLaunch in class CTFBattleClasspublic void onInitialization()
CTFBattleClassonInitialization in class CTFBattleClass