Package studio.magemonkey.codex.api.damage
package studio.magemonkey.codex.api.damage
-
ClassDescriptionHands a
DamageRequestfrom the plugin that deals a hit to the plugin that calculates it.What kind of thing is dealing the damage described by aDamageRequest.A description of a hit, written by the plugin that deals it and read by the plugin that calculates it.An openDamageRequestfor one target, fromDamageContexts.open(Entity, DamageRequest).Access to Bukkit's damage sources, which exist from Minecraft 1.20.4.Gives theDamageSourceAdapterthat fits the running server: one that uses Bukkit's damage sources on Minecraft 1.20.4 and newer, and one that does without them on older versions.The final numbers of a hit, as a damage plugin has calculated them, just before it writes them to the Bukkit damage event.How much of the attacker's equipment the plugin that calculates the damage should bring into a hit described by aDamageRequest.