mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-04 02:36:23 +02:00
16 lines
405 B
Java
16 lines
405 B
Java
package com.gmail.nossr50.skills.taming;
|
|
|
|
import org.bukkit.event.entity.EntityDamageEvent;
|
|
|
|
public class ShockProofEventHandler {
|
|
private EntityDamageEvent event;
|
|
|
|
protected ShockProofEventHandler (EntityDamageEvent event) {
|
|
this.event = event;
|
|
}
|
|
|
|
protected void modifyEventDamage() {
|
|
event.setDamage(event.getDamage() / Taming.shockProofModifier);
|
|
}
|
|
}
|