finished shield blocking
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user