finished shield blocking

This commit is contained in:
batchprogrammer314
2021-07-23 17:25:10 -05:00
parent 95be5d06a1
commit 8dc4dcf8c9
10 changed files with 236 additions and 65 deletions

View File

@@ -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;
}
}