Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen1212055 committed Mar 23, 2024
1 parent ba2aeb1 commit 90eaa50
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Subject: [PATCH] Added EntityDamageDoorEvent and implemented into Server.

diff --git a/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java b/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f27903887525581
index 0000000000000000000000000000000000000000..f5a7ce750af255b89f8cefab07476fd6c3ec40ad
--- /dev/null
+++ b/src/main/java/io/papermc/paper/event/entity/EntityDamageDoorEvent.java
@@ -0,0 +1,125 @@
Expand All @@ -33,15 +33,15 @@ index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f279038
+ private boolean cancelled;
+ private int breakTime;
+ private final int doorBreakTime;
+ private boolean playEffect;
+ private boolean playsEffect;
+
+ @ApiStatus.Internal
+ public EntityDamageDoorEvent(final @NotNull Entity what, final @NotNull BlockData damagedDoor, final int breakTime, final int doorBreakTime, boolean playEffect) {
+ public EntityDamageDoorEvent(final @NotNull Entity what, final @NotNull BlockData damagedDoor, final int breakTime, final int doorBreakTime, boolean playsEffect) {
+ super(what);
+ this.damagedDoor = damagedDoor;
+ this.breakTime = breakTime;
+ this.doorBreakTime = doorBreakTime;
+ this.playEffect = playEffect;
+ this.playsEffect = playsEffect;
+ }
+
+ /**
Expand Down Expand Up @@ -97,17 +97,17 @@ index 0000000000000000000000000000000000000000..403ede1eece18d5b70117a789f279038
+ * @return will play effect
+ */
+ public boolean playsEffect() {
+ return this.playEffect;
+ return this.playsEffect;
+ }
+
+ /**
+ * Sets if this should play an effect when damaging the door.
+ * This includes the sound, and arm swing (if the entity isn't currently swinging)
+ *
+ * @param playEffects will play effect
+ * @param playsEffect will play effect
+ */
+ public void playsEffect(final boolean playEffects) {
+ this.playEffect = playEffects;
+ public void playsEffect(final boolean playsEffect) {
+ this.playsEffect = playsEffect;
+ }
+
+ @Override
Expand Down

0 comments on commit 90eaa50

Please sign in to comment.