diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-04 19:27:22 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-04 19:27:22 +0900 |
commit | ea945d7be62aab1d143b79adc20f243fec673f08 (patch) | |
tree | 2b04ef1dd666216c697b0b3b8e516c54f852569a /mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon | |
parent | 7bc262cbfa173fb0a31fb58d6f1d55fa0cac3b08 (diff) | |
download | Skyblock-Dungeons-Guide-ea945d7be62aab1d143b79adc20f243fec673f08.tar.gz Skyblock-Dungeons-Guide-ea945d7be62aab1d143b79adc20f243fec673f08.tar.bz2 Skyblock-Dungeons-Guide-ea945d7be62aab1d143b79adc20f243fec673f08.zip |
- Remove some stupid features
- Fix PredicateArmorStand
- WidgetMechanicBrowser now actually works
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon')
2 files changed, 5 insertions, 3 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonFairySoul.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonFairySoul.java index 864b1330..85cca2ba 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonFairySoul.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonFairySoul.java @@ -53,7 +53,7 @@ public class DungeonFairySoul implements DungeonMechanic { Set<AbstractAction> base = new HashSet<>(); ActionInteract actionClick = new ActionInteract(secretPoint); - actionClick.setPredicate((Predicate<Entity>) PredicateArmorStand.INSTANCE); + actionClick.setPredicate(PredicateArmorStand.INSTANCE); actionClick.setRadius(3); base.add(actionClick); diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateArmorStand.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateArmorStand.java index a4eddefe..e13376ee 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateArmorStand.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/predicates/PredicateArmorStand.java @@ -18,18 +18,20 @@ package kr.syeyoung.dungeonsguide.dungeon.mechanics.predicates; -import com.google.common.base.Predicate; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityArmorStand; import org.jetbrains.annotations.Nullable; +import java.util.function.Predicate; + public class PredicateArmorStand implements Predicate<Entity> { public static final PredicateArmorStand INSTANCE = new PredicateArmorStand(); + @Override - public boolean apply(@Nullable Entity input) { + public boolean test(@Nullable Entity input) { return input instanceof EntityArmorStand; } |