From 07921299906b9e679caa093a5559aa2adee04e51 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:11:20 +0100 Subject: [PATCH] Added getEntity() to BlackJack This method returns the Entity by the enum --- src/main/java/org/bitbiome/classes/BlackJack.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bitbiome/classes/BlackJack.java b/src/main/java/org/bitbiome/classes/BlackJack.java index dfb791c..b1bfce8 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/src/main/java/org/bitbiome/classes/BlackJack.java @@ -57,4 +57,8 @@ public class BlackJack { public boolean isIn(Entity entity) { return entity == Entity.PLAYER ? playerIn : botIn; } + + public Entity getEntity(int ID) { + return Entity.getEventStatusById(ID); + } }