Package com.tomkeuper.bedwars.api.server
Class VersionSupport
java.lang.Object
com.tomkeuper.bedwars.api.server.VersionSupport
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersionSupport(org.bukkit.plugin.Plugin plugin, String versionName) Create a new version support instance. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.bukkit.inventory.ItemStackaddCustomData(org.bukkit.inventory.ItemStack i, String data) Add custom data to an ItemStack.abstract voidcallPlayerDeathEvent(org.bukkit.entity.Player player, List<org.bukkit.inventory.ItemStack> drops, int droppedExp, int newLevel, String deathMessage) Call player death event.abstract voidclearArrowsFromPlayerBody(org.bukkit.entity.Player player) Clear arrows from player body.abstract voidColor a bed 1.12+abstract org.bukkit.inventory.ItemStackcolourItem(org.bukkit.inventory.ItemStack itemStack, ITeam bedWarsTeam) Color an item if possible with the team's colorabstract IGeneratorAnimationcreateDefaultGeneratorAnimation(org.bukkit.entity.ArmorStand armorStand) Create default generator animation.abstract IHologramcreateHologram(Iterable<org.bukkit.entity.Player> players, org.bukkit.Location location, IHoloLine... lines) Create a hologram.abstract IHologramcreateHologram(Iterable<org.bukkit.entity.Player> players, org.bukkit.Location location, String... lines) Create a hologram.abstract IHologramcreateHologram(org.bukkit.entity.Player p, org.bukkit.Location location, IHoloLine... lines) Create a hologram.abstract IHologramcreateHologram(org.bukkit.entity.Player p, org.bukkit.Location location, String... lines) Create a hologram.abstract org.bukkit.inventory.ItemStackcreateItemStack(String material, int amount, short data) Create an item stack.abstract org.bukkit.entity.ArmorStandcreatePacketArmorStand(org.bukkit.Location loc, Iterable<org.bukkit.entity.Player> players) Create packet armor stand.abstract voiddestroyPacketArmorStand(GeneratorHolder generatorHolder, Iterable<org.bukkit.entity.Player> players) Destroy packet armor stand.org.bukkit.EffectEgg bridge particlesabstract voidfakeDamagePlayer(org.bukkit.entity.Player e) Apply fake damage to a player (red flash and hurt sound)abstract floatgetAbsorption(org.bukkit.entity.Player player) Returns the absorption health of a player.abstract floatgetBlastResistance(org.bukkit.block.Block block) Get blast resistance of a block.bytegetCompressedAngle(float value) Get compressed angle for packets.abstract StringgetCustomData(org.bukkit.inventory.ItemStack i) Get the NBTTag from a BedWars2023 itemabstract doublegetDamage(org.bukkit.inventory.ItemStack i) Get item-stack damage amountGet list of entities that are going to despawn based on a timer.abstract StringgetInventoryName(org.bukkit.event.inventory.InventoryEvent e) Get inventory name.abstract org.bukkit.inventory.ItemStackgetItemInHand(org.bukkit.entity.Player p) Get in had item-stackabstract StringGet main level name.static StringgetName()Get the version name.abstract org.bukkit.inventory.ItemStackgetPlayerHead(org.bukkit.entity.Player player, @Nullable org.bukkit.inventory.ItemStack copyTagFrom) Get player head with skin.org.bukkit.plugin.PluginGet the plugin instance.abstract StringgetShopUpgradeIdentifier(org.bukkit.inventory.ItemStack itemStack) Get an ItemStack identifier will return null text if it does not have an identifierabstract StringGet a custom item tag.abstract intGet the major version.abstract org.bukkit.inventory.ItemStackgreenGlassPane(int amount) Green glass pane item stackabstract voidhideArmor(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Hide player armor to a playerabstract voidhideEntity(org.bukkit.entity.Entity e, org.bukkit.entity.Player p) Hide an entityabstract booleanisArmor(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is armorabstract booleanisAxe(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is axebooleanisBed(org.bukkit.Material material) Check if bedabstract booleanisBow(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is bowabstract booleanisBukkitCommandRegistered(String command) Check if bukkit command is registeredabstract booleanisCustomBedWarsItem(org.bukkit.inventory.ItemStack i) Check if an item has a BedWars2023 NBTTagbooleanisDespawnable(org.bukkit.entity.Entity e) Is despawnable entitybooleanisGlass(org.bukkit.Material type) Check if type is a Glass type materialabstract booleanisInvisibilityPotion(org.bukkit.inventory.ItemStack itemStack) Check if itemstack is Invisibility PotionbooleanisPlayerHead(String material, int data) Check if is a player headabstract booleanisProjectile(org.bukkit.inventory.ItemStack itemStack) Check if itemstack is Projectileabstract booleanisSword(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is swordabstract booleanisTool(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is a toolbooleanitemStackDataCompare(org.bukkit.inventory.ItemStack i, short data) Item Data compare This will always return true on versions major or equal 1.13abstract IHoloLinelineFromText(String text, IHologram hologram) Create a hologram line from text.protected voidLoad default effects.abstract org.bukkit.MaterialCake materialabstract org.bukkit.MaterialCrafting table materialabstract org.bukkit.MaterialGet elytra - supports: 1.12.2+abstract org.bukkit.MaterialEnchanting table materialabstract org.bukkit.MaterialEnd stone material.abstract org.bukkit.MaterialGet fireball materialabstract org.bukkit.MaterialGet gold chest plateabstract org.bukkit.MaterialGet gold helmet materialabstract org.bukkit.MaterialGet gold leggingsabstract org.bukkit.MaterialGet netherite chest plateabstract org.bukkit.MaterialGet netherite helmet materialabstract org.bukkit.MaterialGet netherite leggingsabstract org.bukkit.MaterialPlayer head materialabstract org.bukkit.MaterialGet snowball materialabstract voidminusAmount(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack i, int amount) Change item amountabstract org.bukkit.block.BlockplaceLadder(org.bukkit.block.Block b, int x, int y, int z, IArena a, int ladderdata) Place a ladder.abstract org.bukkit.block.BlockplaceTowerBlocks(org.bukkit.block.Block b, IArena a, TeamColor color, int x, int y, int z) Place tower blocks.abstract voidplayAction(org.bukkit.entity.Player p, String text) Send action-bar messageabstract voidplayRedStoneDot(org.bukkit.entity.Player player) Play redstone dot particle at player location.abstract voidplayVillagerEffect(org.bukkit.entity.Player player, org.bukkit.Location location) Play villager effect at location.abstract org.bukkit.inventory.ItemStackredGlassPane(int amount) Red glass pane item stackabstract voidregisterCommand(String name, org.bukkit.command.Command cmd) Register a new command as bukkit commandabstract voidRegister custom entitiesabstract voidregisterTntWhitelist(float endStoneBlast, float glassBlast) Modify and register block blast resistance.abstract voidRegister version-specific listeners.abstract voidsendPlayerSpawnPackets(org.bukkit.entity.Player player, IArena arena) This will send the player spawn packet after a player re-spawn.abstract voidsendTitle(org.bukkit.entity.Player p, String title, String subtitle, int fadeIn, int stay, int fadeOut) Send title, subtitle.abstract voidsetBlockTeamColor(org.bukkit.block.Block block, TeamColor teamColor) Set block data For 1.13 supportabstract voidsetCollide(org.bukkit.entity.Player p, IArena a, boolean value) Disable collisions in 1.9+voidsetEggBridgeEffect(String eggBridge) abstract org.bukkit.entity.FireballsetFireballDirection(org.bukkit.entity.Fireball fireball, org.bukkit.util.Vector vector) Make fireball go straight.abstract voidsetJoinSignBackground(org.bukkit.block.BlockState b, org.bukkit.Material material) Change the block behind the join sign.voidsetJoinSignBackgroundBlockData(org.bukkit.block.BlockState b, byte data) Set block data For versions before 1.13abstract org.bukkit.inventory.ItemStacksetShopUpgradeIdentifier(org.bukkit.inventory.ItemStack itemStack, String identifier) Set an upgrade identifierabstract voidsetSource(org.bukkit.entity.TNTPrimed tnt, org.bukkit.entity.Player owner) Set tnt sourceabstract org.bukkit.inventory.ItemStackSet a custom NBT tag.abstract voidsetUnbreakable(org.bukkit.inventory.meta.ItemMeta itemMeta) Make item unbreakable.abstract voidshowArmor(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Show a player armorabstract org.bukkit.entity.EnderDragonspawnDragon(org.bukkit.Location l, ITeam team) Spawn ender dragonabstract voidspawnIronGolem(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn, int pathFindingTicks) Spawn a iron-golem for a teamabstract voidspawnShop(org.bukkit.Location loc, String name1, Iterable<org.bukkit.entity.Player> players, IArena arena) Spawn shop NPCabstract voidspawnShopHologram(org.bukkit.Location loc, String name1, Iterable<org.bukkit.entity.Player> players, ITeam team) Spawn shop hologramabstract voidspawnSilverfish(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn, double damage, int pathFindingTicks) Spawn silverfish for a teamvoidspigotHidePlayer(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Hide a player from another player using spigot-specific methods if necessary.voidspigotShowPlayer(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Show a player to another player using spigot-specific methods if necessary.abstract voidupdatePacketArmorStand(GeneratorHolder generatorHolder, Iterable<org.bukkit.entity.Player> players) Update packet armor stand.abstract voidupdatePacketArmorStandEquipment(GeneratorHolder generatorHolder) Update packet armor stand equipment.abstract voidvoidKill(org.bukkit.entity.Player p) Void damage with causeabstract org.bukkit.MaterialWool material
-
Field Details
-
PLUGIN_TAG_GENERIC_KEY
Generic plugin tag key. -
PLUGIN_TAG_TIER_KEY
Tier identifier tag key.
-
-
Constructor Details
-
VersionSupport
Create a new version support instance.- Parameters:
plugin- the plugin instanceversionName- the version name
-
-
Method Details
-
getName
Get the version name.- Returns:
- the version name
-
loadDefaultEffects
protected void loadDefaultEffects()Load default effects. -
registerCommand
Register a new command as bukkit command -
sendTitle
public abstract void sendTitle(org.bukkit.entity.Player p, String title, String subtitle, int fadeIn, int stay, int fadeOut) Send title, subtitle. null for empty -
playAction
Send action-bar message -
isBukkitCommandRegistered
Check if bukkit command is registered -
getItemInHand
public abstract org.bukkit.inventory.ItemStack getItemInHand(org.bukkit.entity.Player p) Get in had item-stack -
hideEntity
public abstract void hideEntity(org.bukkit.entity.Entity e, org.bukkit.entity.Player p) Hide an entity -
fakeDamagePlayer
public abstract void fakeDamagePlayer(org.bukkit.entity.Player e) Apply fake damage to a player (red flash and hurt sound) -
isArmor
public abstract boolean isArmor(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is armor -
isTool
public abstract boolean isTool(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is a tool -
isSword
public abstract boolean isSword(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is sword -
isAxe
public abstract boolean isAxe(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is axe -
isBow
public abstract boolean isBow(org.bukkit.inventory.ItemStack itemStack) Check if item-stack is bow -
isProjectile
public abstract boolean isProjectile(org.bukkit.inventory.ItemStack itemStack) Check if itemstack is Projectile -
isInvisibilityPotion
public abstract boolean isInvisibilityPotion(org.bukkit.inventory.ItemStack itemStack) Check if itemstack is Invisibility Potion -
isGlass
public boolean isGlass(org.bukkit.Material type) Check if type is a Glass type material -
registerEntities
public abstract void registerEntities()Register custom entities -
spawnShop
public abstract void spawnShop(org.bukkit.Location loc, String name1, Iterable<org.bukkit.entity.Player> players, IArena arena) Spawn shop NPC -
spawnShopHologram
public abstract void spawnShopHologram(org.bukkit.Location loc, String name1, Iterable<org.bukkit.entity.Player> players, ITeam team) Spawn shop hologram -
getDamage
public abstract double getDamage(org.bukkit.inventory.ItemStack i) Get item-stack damage amount -
spawnSilverfish
public abstract void spawnSilverfish(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn, double damage, int pathFindingTicks) Spawn silverfish for a team -
spawnIronGolem
public abstract void spawnIronGolem(org.bukkit.Location loc, ITeam team, double speed, double health, int despawn, int pathFindingTicks) Spawn a iron-golem for a team -
isDespawnable
public boolean isDespawnable(org.bukkit.entity.Entity e) Is despawnable entity -
minusAmount
public abstract void minusAmount(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack i, int amount) Change item amount -
setSource
public abstract void setSource(org.bukkit.entity.TNTPrimed tnt, org.bukkit.entity.Player owner) Set tnt source -
voidKill
public abstract void voidKill(org.bukkit.entity.Player p) Void damage with cause -
hideArmor
public abstract void hideArmor(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Hide player armor to a player -
showArmor
public abstract void showArmor(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Show a player armor -
spawnDragon
Spawn ender dragon -
colorBed
Color a bed 1.12+ -
registerTntWhitelist
public abstract void registerTntWhitelist(float endStoneBlast, float glassBlast) Modify and register block blast resistance. -
getBlastResistance
public abstract float getBlastResistance(org.bukkit.block.Block block) Get blast resistance of a block. This will return the default blast resistance if not modified.- Parameters:
block- the block to get blast resistance for- Returns:
- the blast resistance of the block
-
eggBridge
public org.bukkit.Effect eggBridge()Egg bridge particles -
setEggBridgeEffect
- Throws:
InvalidEffectException
-
setBlockTeamColor
Set block data For 1.13 support -
setCollide
Disable collisions in 1.9+ -
addCustomData
public abstract org.bukkit.inventory.ItemStack addCustomData(org.bukkit.inventory.ItemStack i, String data) Add custom data to an ItemStack.- Parameters:
i- the item stackdata- the data string- Returns:
- the modified item stack
-
setTag
public abstract org.bukkit.inventory.ItemStack setTag(org.bukkit.inventory.ItemStack itemStack, String key, String value) Set a custom NBT tag.- Parameters:
itemStack- the item stackkey- the tag keyvalue- the tag value- Returns:
- the modified item stack
-
getTag
Get a custom item tag.- Parameters:
itemStack- the item stackkey- the tag key- Returns:
- the tag value or null if not present
-
isCustomBedWarsItem
public abstract boolean isCustomBedWarsItem(org.bukkit.inventory.ItemStack i) Check if an item has a BedWars2023 NBTTag -
getCustomData
Get the NBTTag from a BedWars2023 item -
colourItem
public abstract org.bukkit.inventory.ItemStack colourItem(org.bukkit.inventory.ItemStack itemStack, ITeam bedWarsTeam) Color an item if possible with the team's color -
createItemStack
public abstract org.bukkit.inventory.ItemStack createItemStack(String material, int amount, short data) Create an item stack.- Parameters:
material- the material nameamount- the amountdata- the data value (for legacy versions)- Returns:
- the item stack
-
isPlayerHead
Check if is a player head -
materialFireball
public abstract org.bukkit.Material materialFireball()Get fireball material -
materialPlayerHead
public abstract org.bukkit.Material materialPlayerHead()Player head material -
materialSnowball
public abstract org.bukkit.Material materialSnowball()Get snowball material -
materialGoldenHelmet
public abstract org.bukkit.Material materialGoldenHelmet()Get gold helmet material -
materialGoldenChestPlate
public abstract org.bukkit.Material materialGoldenChestPlate()Get gold chest plate -
materialGoldenLeggings
public abstract org.bukkit.Material materialGoldenLeggings()Get gold leggings -
materialNetheriteHelmet
public abstract org.bukkit.Material materialNetheriteHelmet()Get netherite helmet material -
materialNetheriteChestPlate
public abstract org.bukkit.Material materialNetheriteChestPlate()Get netherite chest plate -
materialNetheriteLeggings
public abstract org.bukkit.Material materialNetheriteLeggings()Get netherite leggings -
materialElytra
public abstract org.bukkit.Material materialElytra()Get elytra - supports: 1.12.2+ -
materialCake
public abstract org.bukkit.Material materialCake()Cake material -
materialCraftingTable
public abstract org.bukkit.Material materialCraftingTable()Crafting table material -
materialEnchantingTable
public abstract org.bukkit.Material materialEnchantingTable()Enchanting table material -
materialEndStone
public abstract org.bukkit.Material materialEndStone()End stone material.- Returns:
- the end stone material
-
isBed
public boolean isBed(org.bukkit.Material material) Check if bed -
itemStackDataCompare
public boolean itemStackDataCompare(org.bukkit.inventory.ItemStack i, short data) Item Data compare This will always return true on versions major or equal 1.13 -
setJoinSignBackgroundBlockData
public void setJoinSignBackgroundBlockData(org.bukkit.block.BlockState b, byte data) Set block data For versions before 1.13 -
setJoinSignBackground
public abstract void setJoinSignBackground(org.bukkit.block.BlockState b, org.bukkit.Material material) Change the block behind the join sign. -
woolMaterial
public abstract org.bukkit.Material woolMaterial()Wool material -
redGlassPane
public abstract org.bukkit.inventory.ItemStack redGlassPane(int amount) Red glass pane item stack- Parameters:
amount- the amount of the stack- Returns:
- the itemStack
-
greenGlassPane
public abstract org.bukkit.inventory.ItemStack greenGlassPane(int amount) Green glass pane item stack- Parameters:
amount- the amount of the stack- Returns:
- the itemStack
-
getShopUpgradeIdentifier
Get an ItemStack identifier will return null text if it does not have an identifier -
setShopUpgradeIdentifier
public abstract org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.inventory.ItemStack itemStack, String identifier) Set an upgrade identifier -
getPlayerHead
public abstract org.bukkit.inventory.ItemStack getPlayerHead(org.bukkit.entity.Player player, @Nullable @Nullable org.bukkit.inventory.ItemStack copyTagFrom) Get player head with skin.- Parameters:
player- the playercopyTagFrom- will copy nbt tag from this item.- Returns:
- the player head item stack
-
sendPlayerSpawnPackets
This will send the player spawn packet after a player re-spawn.Show the target player to players and spectators in the arena.
-
getInventoryName
Get inventory name. -
setUnbreakable
public abstract void setUnbreakable(org.bukkit.inventory.meta.ItemMeta itemMeta) Make item unbreakable. -
getDespawnablesList
Get list of entities that are going to despawn based on a timer. -
getVersion
public abstract int getVersion()Get the major version.- Returns:
- the major version (e.g., 8, 12, 16, 21)
-
getPlugin
public org.bukkit.plugin.Plugin getPlugin()Get the plugin instance.- Returns:
- the plugin instance
-
registerVersionListeners
public abstract void registerVersionListeners()Register version-specific listeners. -
getMainLevel
Get main level name. -
getCompressedAngle
public byte getCompressedAngle(float value) Get compressed angle for packets.- Parameters:
value- the angle value- Returns:
- the compressed angle
-
spigotShowPlayer
public void spigotShowPlayer(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Show a player to another player using spigot-specific methods if necessary.- Parameters:
victim- the player to showreceiver- the player who will see the victim
-
spigotHidePlayer
public void spigotHidePlayer(org.bukkit.entity.Player victim, org.bukkit.entity.Player receiver) Hide a player from another player using spigot-specific methods if necessary.- Parameters:
victim- the player to hidereceiver- the player who will no longer see the victim
-
setFireballDirection
public abstract org.bukkit.entity.Fireball setFireballDirection(org.bukkit.entity.Fireball fireball, org.bukkit.util.Vector vector) Make fireball go straight.- Parameters:
fireball- fireball instance;vector- fireball direction to normalize.- Returns:
- modified fireball.
-
playRedStoneDot
public abstract void playRedStoneDot(org.bukkit.entity.Player player) Play redstone dot particle at player location.- Parameters:
player- the player
-
clearArrowsFromPlayerBody
public abstract void clearArrowsFromPlayerBody(org.bukkit.entity.Player player) Clear arrows from player body.- Parameters:
player- the player
-
placeTowerBlocks
public abstract org.bukkit.block.Block placeTowerBlocks(org.bukkit.block.Block b, IArena a, TeamColor color, int x, int y, int z) Place tower blocks.- Parameters:
b- the base blocka- the arenacolor- the team colorx- the x offsety- the y offsetz- the z offset- Returns:
- the last placed block
-
placeLadder
public abstract org.bukkit.block.Block placeLadder(org.bukkit.block.Block b, int x, int y, int z, IArena a, int ladderdata) Place a ladder.- Parameters:
b- the blockx- the x coordinatey- the y coordinatez- the z coordinatea- the arenaladderdata- the ladder data- Returns:
- the placed block
-
playVillagerEffect
public abstract void playVillagerEffect(org.bukkit.entity.Player player, org.bukkit.Location location) Play villager effect at location.- Parameters:
player- the playerlocation- the location
-
createHologram
public abstract IHologram createHologram(org.bukkit.entity.Player p, org.bukkit.Location location, String... lines) Create a hologram.- Parameters:
p- the player who can see the hologramlocation- the locationlines- the lines of text- Returns:
- the hologram instance
-
createHologram
public abstract IHologram createHologram(org.bukkit.entity.Player p, org.bukkit.Location location, IHoloLine... lines) Create a hologram.- Parameters:
p- the player who can see the hologramlocation- the locationlines- the hologram lines- Returns:
- the hologram instance
-
createHologram
public abstract IHologram createHologram(Iterable<org.bukkit.entity.Player> players, org.bukkit.Location location, String... lines) Create a hologram.- Parameters:
players- the players who can see the hologramlocation- the locationlines- the lines of text- Returns:
- the hologram instance
-
createHologram
public abstract IHologram createHologram(Iterable<org.bukkit.entity.Player> players, org.bukkit.Location location, IHoloLine... lines) Create a hologram.- Parameters:
players- the players who can see the hologramlocation- the locationlines- the hologram lines- Returns:
- the hologram instance
-
lineFromText
Create a hologram line from text.- Parameters:
text- the texthologram- the hologram instance- Returns:
- the hologram line
-
createDefaultGeneratorAnimation
public abstract IGeneratorAnimation createDefaultGeneratorAnimation(org.bukkit.entity.ArmorStand armorStand) Create default generator animation.- Parameters:
armorStand- the armor stand- Returns:
- the generator animation instance
-
destroyPacketArmorStand
public abstract void destroyPacketArmorStand(GeneratorHolder generatorHolder, Iterable<org.bukkit.entity.Player> players) Destroy packet armor stand.- Parameters:
generatorHolder- the generator holderplayers- the players who can see the armor stand
-
createPacketArmorStand
public abstract org.bukkit.entity.ArmorStand createPacketArmorStand(@Nonnull org.bukkit.Location loc, Iterable<org.bukkit.entity.Player> players) Create packet armor stand.- Parameters:
loc- the locationplayers- the players who can see the armor stand- Returns:
- the armor stand instance
-
updatePacketArmorStand
public abstract void updatePacketArmorStand(GeneratorHolder generatorHolder, Iterable<org.bukkit.entity.Player> players) Update packet armor stand.- Parameters:
generatorHolder- the generator holderplayers- the players who can see the armor stand
-
updatePacketArmorStandEquipment
Update packet armor stand equipment.- Parameters:
generatorHolder- the generator holder
-
callPlayerDeathEvent
public abstract void callPlayerDeathEvent(org.bukkit.entity.Player player, List<org.bukkit.inventory.ItemStack> drops, int droppedExp, int newLevel, String deathMessage) Call player death event.- Parameters:
player- the playerdrops- the item dropsdroppedExp- the dropped expnewLevel- the new leveldeathMessage- the death message
-
getAbsorption
public abstract float getAbsorption(org.bukkit.entity.Player player) Returns the absorption health of a player.- Parameters:
player- The player to get the absorption health from.- Returns:
- The absorption health of the player.
-