Package be.seeseemelk.mockbukkit.damage
Class DamageTypeMock
java.lang.Object
be.seeseemelk.mockbukkit.damage.DamageTypeMock
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,DamageType,Keyed,Translatable
-
Field Summary
Fields inherited from interface org.bukkit.damage.DamageType
ARROW, BAD_RESPAWN_POINT, CACTUS, CAMPFIRE, CRAMMING, DRAGON_BREATH, DROWN, DRY_OUT, EXPLOSION, FALL, FALLING_ANVIL, FALLING_BLOCK, FALLING_STALACTITE, FIREBALL, FIREWORKS, FLY_INTO_WALL, FREEZE, GENERIC, GENERIC_KILL, HOT_FLOOR, IN_FIRE, IN_WALL, INDIRECT_MAGIC, LAVA, LIGHTNING_BOLT, MAGIC, MOB_ATTACK, MOB_ATTACK_NO_AGGRO, MOB_PROJECTILE, ON_FIRE, OUT_OF_WORLD, OUTSIDE_BORDER, PLAYER_ATTACK, PLAYER_EXPLOSION, SONIC_BOOM, SPIT, STALAGMITE, STARVE, STING, SWEET_BERRY_BUSH, THORNS, THROWN, TRIDENT, UNATTRIBUTED_FIREBALL, WIND_CHARGE, WITHER, WITHER_SKULL -
Constructor Summary
ConstructorsConstructorDescriptionDamageTypeMock(com.google.gson.JsonObject data) Deprecated, for removal: This API element is subject to removal in a future version.This constructor has been deprecated.DamageTypeMock(@NotNull DamageScaling damageScaling, @NotNull DamageEffectMock damageEffect, @NotNull NamespacedKey namespacedKey, @NotNull DeathMessageType deathMessageType, float exhaustion, @NotNull String translationKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageTypeMockfrom(com.google.gson.JsonObject data) @NotNull DamageEffect@NotNull DamageScaling@NotNull DeathMessageTypefloat@NotNull NamespacedKeygetKey()@NotNull String
-
Constructor Details
-
DamageTypeMock
@Internal public DamageTypeMock(@NotNull @NotNull DamageScaling damageScaling, @NotNull @NotNull DamageEffectMock damageEffect, @NotNull @NotNull NamespacedKey namespacedKey, @NotNull @NotNull DeathMessageType deathMessageType, float exhaustion, @NotNull @NotNull String translationKey) -
DamageTypeMock
@Deprecated(forRemoval=true, since="v3.76.1") public DamageTypeMock(com.google.gson.JsonObject data) Deprecated, for removal: This API element is subject to removal in a future version.This constructor has been deprecated. Usefrom(JsonObject)instead.
-
-
Method Details
-
from
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceDamageType- Specified by:
getTranslationKeyin interfaceTranslatable
-
getDamageScaling
- Specified by:
getDamageScalingin interfaceDamageType
-
getDamageEffect
- Specified by:
getDamageEffectin interfaceDamageType
-
getDeathMessageType
- Specified by:
getDeathMessageTypein interfaceDamageType
-
getExhaustion
public float getExhaustion()- Specified by:
getExhaustionin interfaceDamageType
-
getKey
-