This commit is contained in:
parent
7cc9395cbc
commit
1380e7479a
11 changed files with 45 additions and 77 deletions
|
@ -17,11 +17,13 @@ import org.bukkit.event.entity.EntityDamageByBlockEvent;
|
|||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
import org.bukkit.inventory.EntityEquipment;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@SuppressWarnings("EmptyMethod")
|
||||
public class CombatManager extends Manager {
|
||||
|
||||
@EventHandler
|
||||
public void onDamage(EntityDamageByBlockEvent e) {
|
||||
public void onDamage(@NotNull EntityDamageByBlockEvent e) {
|
||||
// TODO: Implement
|
||||
// blast enchant :shrug:
|
||||
// fall damage, fire damage, etc
|
||||
|
@ -31,7 +33,7 @@ public class CombatManager extends Manager {
|
|||
|
||||
// TODO: Finish this
|
||||
@EventHandler
|
||||
public void onDamage(EntityDamageByEntityEvent e) {
|
||||
public void onDamage(@NotNull EntityDamageByEntityEvent e) {
|
||||
e.setDamage(0.0);
|
||||
|
||||
if (!(e.getDamager() instanceof LivingEntity damager)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue