3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 13:00:06 +01:00
Paper/src/main/java
t00thpick1 6f21d3ca8f [Bleeding] Implement new damage api. Fixes BUKKIT-5326, BUKKIT-3878.
This commit centralizes event handling to where damage is actually applied
to the entity to avoid bugs that have resulted from nodamageticks,
modifications to damage after the event has been called, and similar
mishaps. This also implements new API for getting and setting of
modifications made to the damage amount actually applied to the entity.
This is done by storing the change in the damage amount as each modifier
is applied by vanilla code.

The method that actually damages the armor worn by an entity has been
relocated beneath the event called as to not apply durability loss when
the event has been cancelled.
2014-06-22 15:23:16 -05:00
..
jline Use jansi's Windows support for terminal colors. 2012-05-23 15:32:42 -05:00
net/minecraft/server [Bleeding] Implement new damage api. Fixes BUKKIT-5326, BUKKIT-3878. 2014-06-22 15:23:16 -05:00
org [Bleeding] Implement new damage api. Fixes BUKKIT-5326, BUKKIT-3878. 2014-06-22 15:23:16 -05:00