/* * ReActions, Minecraft bukkit plugin * (c)2012-2017, fromgate, fromgate@gmail.com * http://dev.bukkit.org/server-mods/reactions/ * * This file is part of ReActions. * * ReActions is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ReActions is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ReActions. If not, see <http://www.gnorg/licenses/>. * */ package me.fromgate.reactions.event; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent.DamageCause; public class MobDamageEvent extends RAEvent { private LivingEntity mob; private double damage; private DamageCause cause; public MobDamageEvent(LivingEntity entity, Player damager, double damage, DamageCause cause) { super(damager); this.mob = entity; this.damage = damage; this.cause = cause; } public LivingEntity getMob() { return this.mob; } public double getDamage() { return this.damage; } public void setDamage(double damage) { this.damage = damage; } public DamageCause getCause() { return this.cause; } }