aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/events
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-31 21:55:43 +0900
committersyeyoung <cyong06@naver.com>2021-01-31 21:55:43 +0900
commit4bd4e520d6d2559b0bfee97379481ecc5292cb28 (patch)
tree88e564eb61db4196455ea20896a456de50519821 /src/main/java/kr/syeyoung/dungeonsguide/events
parent4f9f93f374d4f341361323139c7b257f578820d6 (diff)
downloadSkyblock-Dungeons-Guide-4bd4e520d6d2559b0bfee97379481ecc5292cb28.tar.gz
Skyblock-Dungeons-Guide-4bd4e520d6d2559b0bfee97379481ecc5292cb28.tar.bz2
Skyblock-Dungeons-Guide-4bd4e520d6d2559b0bfee97379481ecc5292cb28.zip
new events, number solver
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/events')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/events/PlayerInteractEntityEvent.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/events/PlayerInteractEntityEvent.java b/src/main/java/kr/syeyoung/dungeonsguide/events/PlayerInteractEntityEvent.java
new file mode 100644
index 00000000..8e61b6a2
--- /dev/null
+++ b/src/main/java/kr/syeyoung/dungeonsguide/events/PlayerInteractEntityEvent.java
@@ -0,0 +1,21 @@
+package kr.syeyoung.dungeonsguide.events;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import lombok.Setter;
+import net.minecraft.entity.Entity;
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+@AllArgsConstructor
+public class PlayerInteractEntityEvent extends Event {
+
+ @Getter @Setter
+ private boolean attack;
+ @Getter @Setter
+ private Entity entity;
+
+ @Override
+ public boolean isCancelable() {
+ return true;
+ }
+}