45 lines
843 B
Java
45 lines
843 B
Java
package net.nuggetmc.ai.bot.event;
|
|
|
|
import net.nuggetmc.ai.bot.Bot;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class BotDamageByPlayerEvent {
|
|
|
|
private final Bot bot;
|
|
private final Player player;
|
|
|
|
private float damage;
|
|
|
|
private boolean cancelled;
|
|
|
|
public BotDamageByPlayerEvent(Bot bot, Player player, float damage) {
|
|
this.bot = bot;
|
|
this.player = player;
|
|
this.damage = damage;
|
|
}
|
|
|
|
public Bot getBot() {
|
|
return bot;
|
|
}
|
|
|
|
public Player getPlayer() {
|
|
return player;
|
|
}
|
|
|
|
public float getDamage() {
|
|
return damage;
|
|
}
|
|
|
|
public void setDamage(float damage) {
|
|
this.damage = damage;
|
|
}
|
|
|
|
public void setCancelled(boolean cancelled) {
|
|
this.cancelled = cancelled;
|
|
}
|
|
|
|
public boolean isCancelled() {
|
|
return cancelled;
|
|
}
|
|
}
|