From 29928dcb024c69e6213a33039253af9a0f872573 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Tue, 15 Dec 2020 01:24:50 +0900 Subject: hashcode --- .../dungeonsguide/dungeon/mechanics/predicates/PredicateBat.java | 4 ++++ .../dungeon/mechanics/predicates/PredicateSuperBoom.java | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateBat.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateBat.java index 5eb38597..3d814a6a 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateBat.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateBat.java @@ -15,6 +15,10 @@ public class PredicateBat implements Predicate { return input instanceof EntityBat; } + @Override + public int hashCode() { + return 0; + } @Override public boolean equals(Object o) { return o == this || o != null && (o.getClass() == this.getClass()); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateSuperBoom.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateSuperBoom.java index 6054c268..0af08114 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateSuperBoom.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateSuperBoom.java @@ -13,6 +13,11 @@ public class PredicateSuperBoom implements Predicate { return false; } + @Override + public int hashCode() { + return 0; + } + @Override public boolean equals(Object o) { return o == this || o != null && (o.getClass() == this.getClass()); -- cgit