public interface BattleKit
Modifier and Type | Interface and Description |
---|---|
static class |
BattleKit.BattleKitHitDelay |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BATTLE_KIT_HORSE |
static java.lang.String |
CURRENT_KIT |
Modifier and Type | Method and Description |
---|---|
void |
addExtraRollbackMaterial(Material material) |
boolean |
canBreakBlock(Block block) |
static BattleKit |
createKit(java.lang.String name) |
static void |
deselectKit(Player p)
Deselects player's current kit.
|
void |
fillEmptySlotsWithAir() |
@Nullable Explosion |
getBedExplosion() |
int |
getBestOf() |
int |
getBlockDisappear() |
java.util.Set<Material> |
getBlockMaterials() |
java.util.HashSet<Material> |
getBlocks()
Deprecated.
|
ItemStack |
getBoots()
Gets the boots of this BattleKit.
|
ItemStack |
getChestplate()
Gets the chestplate of this BattleKit.
|
static @Nullable BattleKit |
getCurrentKit(@NotNull Metadatable metadatable)
Gets the current kit of the player.
|
java.util.Set<java.lang.String> |
getExtraMaterialNames() |
java.util.Set<Material> |
getExtraMaterials() |
java.lang.String |
getFancyName() |
ItemStack |
getHelmet()
Gets the helmet of this BattleKit.
|
ItemStack |
getIcon()
Gets the icon itemstack of this kit.
|
ItemStack[] |
getInv()
Gets a copy of the inventory contents of this kit.
|
java.util.List<ItemStack> |
getInventory()
Gets the inventory contents of this kit.
|
static @Nullable BattleKit |
getKit(ItemStack icon)
Gets a BattleKit with the given icon.
|
static @Nullable BattleKit |
getKit(Player p,
ItemStack icon,
boolean includeRanked)
Gets the first BattleKit with the given icon.
|
static @Nullable BattleKit |
getKit(java.lang.String name)
Gets a BattleKit with the given name.
|
static java.util.List<BattleKit> |
getKits(ItemStack icon)
Gets a BattleKits with the given icon.
|
java.util.Set<BattleKitType> |
getKitTypes() |
ItemStack |
getLeggings()
Gets the leggings of this BattleKit.
|
java.lang.String |
getMergedEditor() |
java.lang.String |
getName()
Gets the name of this kit.
|
int |
getPearlCooldown() |
java.util.Collection<PotionEffect> |
getPotions()
Gets the potion effects of this kit.
|
java.util.HashSet<Material> |
getRollbackExtraMaterials()
Deprecated.
|
java.util.HashSet<BattleKitType> |
getTypes()
Deprecated.
|
void |
giveKit(Player p)
Gives the player this BattleKit.
|
void |
giveKitMeta(Metadatable metadatable) |
void |
giveKitStuff(Player p,
BattleKit editedKit) |
boolean |
isAnticheatProtected() |
boolean |
isAutoTNT() |
boolean |
isBedwars() |
boolean |
isBoxing() |
boolean |
isBridges() |
boolean |
isBuild()
Returns true if the BattleKit is a build kit.
|
boolean |
isChestAccess() |
boolean |
isCombo()
Returns true if the kit is a combo kit.
|
boolean |
isEditable() |
boolean |
isElo()
Returns true if the BattleKit is an elo kit.
|
boolean |
isFireballJumps() |
boolean |
isHealthbar() |
boolean |
isHorse()
Returns true if the BattleKit is a horse kit.
|
boolean |
isNoBestOfRollback() |
boolean |
isNoDamage() |
boolean |
isNoDeathCountdown() |
boolean |
isNoFallDamage() |
boolean |
isNoHunger() |
boolean |
isOnlyBow()
Returns true if this kit is a only bow kit.
|
boolean |
isParkour() |
boolean |
isShootFireballs() |
boolean |
isStickSpawn() |
boolean |
isStrikePracticeKit() |
boolean |
isTNTJumps() |
boolean |
removeFromStrikePractice()
Remove this BattleKit from StrikePractice so it won't be used by StrikePractice anymore
|
void |
saveForStrikePractice()
Save this BattleKit so StrikePractice can use it.
|
void |
sendFightInfo(Player p) |
void |
setAnticheatProtected(boolean anticheatProtected) |
void |
setAutoTNT(boolean autoTnt) |
void |
setBedExplosion(Explosion explosion) |
void |
setBedwars(boolean bedwars) |
void |
setBestOf(int bestOf) |
void |
setBlockDisappear(int blockDisappear) |
void |
setBoots(ItemStack boots)
Sets the boots of this kit.
|
void |
setBoxing(boolean boxing) |
void |
setBridges(boolean bridges) |
void |
setBuild(boolean build)
Usually fights will get a build arena if the BattleKit is a build BattleKit.
|
void |
setChestAccess(boolean chestAccess) |
void |
setChestplate(ItemStack chestplate)
Sets the chestplate of this kit.
|
void |
setCombo(boolean combo)
When giving a player a combo BattleKit the player's MaximumNoDamageTicks will be set to 2.
|
void |
setEditable(boolean editable) |
void |
setElo(boolean elo) |
void |
setFireballJumps(boolean fireballJumps) |
void |
setHealthbar(boolean healthbar) |
void |
setHelmet(ItemStack helmet)
Sets the chesplate of this kit.
|
void |
setHorse(boolean horse)
When giving a player a horse BattleKit he will be riding a horse.
|
void |
setIcon(ItemStack icon)
Sets the icon itemstack of this kit.
|
void |
setInventory(java.util.List<ItemStack> inventory)
Sets the inventory contents of this kit.
|
void |
setLeggings(ItemStack leggings)
Sets the leggings of this kit.
|
void |
setMergedEditor(java.lang.String mergedEditor) |
void |
setName(java.lang.String name)
Sets this BattleKit's name.
|
void |
setNoBestOfRollback(boolean noBestOfRollback) |
void |
setNoDamage(boolean noDamage) |
void |
setNoDeathCountdown(boolean noDeathCountdown) |
void |
setNoFallDamage(boolean noFallDamage) |
void |
setNoHunger(boolean noHunger) |
void |
setOnlyBow(boolean onlyBow)
After giving a player this kit the player can not attack other players with swords, fists etc.
|
void |
setParkour(boolean parkour) |
void |
setPearlCooldown(int seconds) |
void |
setPotions(java.util.Collection<PotionEffect> potions)
Sets the collection of potion effects of this kit.
|
void |
setRollbackExtraMaterials(java.util.Set<Material> rollbackExtraMaterials) |
void |
setShootFireballs(boolean shootFireballs) |
void |
setStickSpawn(boolean stickSpawn) |
void |
setTNTJumps(boolean tntJump) |
void |
setTypes(java.util.Set<BattleKitType> types) |
static final java.lang.String CURRENT_KIT
static final java.lang.String BATTLE_KIT_HORSE
@Nullable static @Nullable BattleKit getKit(java.lang.String name)
name
- name of the BattleKit.@Nullable static @Nullable BattleKit getKit(Player p, ItemStack icon, boolean includeRanked)
p
- player whose custom kit it might be.icon
- icon of the BattleKit.@Nullable static @Nullable BattleKit getKit(ItemStack icon)
icon
- itemstack that is the BattleKit's icon.static java.util.List<BattleKit> getKits(ItemStack icon)
@Nullable static @Nullable BattleKit getCurrentKit(@NotNull @NotNull Metadatable metadatable)
static void deselectKit(Player p)
p
- whose kit will be deselected.static BattleKit createKit(java.lang.String name)
void saveForStrikePractice()
boolean removeFromStrikePractice()
boolean isStrikePracticeKit()
void giveKitMeta(Metadatable metadatable)
void giveKit(Player p)
p
- player to give the BattleKit.@Deprecated java.util.HashSet<Material> getBlocks()
java.util.Set<Material> getBlockMaterials()
void fillEmptySlotsWithAir()
boolean canBreakBlock(Block block)
void setOnlyBow(boolean onlyBow)
onlyBow
- true for an only bow kit, otherwise false.void setBoots(ItemStack boots)
boots
- an itemStack that will be used as the boots.@Deprecated java.util.HashSet<BattleKitType> getTypes()
java.util.Set<BattleKitType> getKitTypes()
void setTypes(java.util.Set<BattleKitType> types)
void setChestplate(ItemStack chestplate)
chestplate
- the itemStack that will be used as the chestplate.void setHelmet(ItemStack helmet)
helmet
- the itemStack that will be used as the helmet.void setLeggings(ItemStack leggings)
leggings
- the itemStack that will be used as the leggings.boolean isChestAccess()
void setChestAccess(boolean chestAccess)
chestAccess
- the chestAccess to setjava.lang.String getMergedEditor()
void setMergedEditor(java.lang.String mergedEditor)
mergedEditor
- the mergedEditor to setvoid setInventory(java.util.List<ItemStack> inventory)
inventory
- the list of items that will be used as inventory contents in the kit.void setBestOf(int bestOf)
int getBestOf()
void setBlockDisappear(int blockDisappear)
int getBlockDisappear()
void setPearlCooldown(int seconds)
int getPearlCooldown()
void setNoDamage(boolean noDamage)
boolean isNoDamage()
void setAutoTNT(boolean autoTnt)
boolean isAutoTNT()
void setShootFireballs(boolean shootFireballs)
boolean isShootFireballs()
void setTNTJumps(boolean tntJump)
boolean isTNTJumps()
void setFireballJumps(boolean fireballJumps)
boolean isFireballJumps()
boolean isEditable()
void setEditable(boolean editable)
editable
- the editable to setvoid setPotions(java.util.Collection<PotionEffect> potions)
potions
- the collection of potion effects that will be applied when giving a player the kit.void setBuild(boolean build)
build
- true for a build BattleKit, false for not a build BattleKit.void setName(java.lang.String name)
name
- the name to set.ItemStack getBoots()
ItemStack getLeggings()
ItemStack getChestplate()
ItemStack getHelmet()
java.util.List<ItemStack> getInventory()
ItemStack[] getInv()
java.util.Collection<PotionEffect> getPotions()
ItemStack getIcon()
boolean isAnticheatProtected()
void setAnticheatProtected(boolean anticheatProtected)
anticheatProtected
- true if the kit should be protected by the anticheat systemvoid setIcon(ItemStack icon)
icon
- the itemstack that will be the icon.java.lang.String getName()
boolean isOnlyBow()
void setCombo(boolean combo)
combo
- true for a combo kit, false for not a combo kit.void setElo(boolean elo)
elo
- true for a elo kit, false for not a elo kit.void setHorse(boolean horse)
horse
- true for a horse kit, false for not a horse kit.boolean isCombo()
@Deprecated java.util.HashSet<Material> getRollbackExtraMaterials()
java.util.Set<Material> getExtraMaterials()
java.util.Set<java.lang.String> getExtraMaterialNames()
void addExtraRollbackMaterial(Material material)
void setRollbackExtraMaterials(java.util.Set<Material> rollbackExtraMaterials)
boolean isElo()
boolean isHorse()
void setNoHunger(boolean noHunger)
boolean isNoHunger()
boolean isBuild()
boolean isStickSpawn()
boolean isBedwars()
void setBedwars(boolean bedwars)
boolean isBridges()
void setBridges(boolean bridges)
boolean isParkour()
void setParkour(boolean parkour)
boolean isHealthbar()
void setHealthbar(boolean healthbar)
boolean isNoFallDamage()
void setNoFallDamage(boolean noFallDamage)
void setStickSpawn(boolean stickSpawn)
boolean isNoBestOfRollback()
void setNoDeathCountdown(boolean noDeathCountdown)
void setNoBestOfRollback(boolean noBestOfRollback)
boolean isNoDeathCountdown()
void sendFightInfo(Player p)
java.lang.String getFancyName()
void giveKitStuff(Player p, BattleKit editedKit)
boolean isBoxing()
void setBoxing(boolean boxing)
void setBedExplosion(Explosion explosion)
@Nullable @Nullable Explosion getBedExplosion()