aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch')
-rw-r--r--patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch b/patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch
index 5677026956..766e838ec8 100644
--- a/patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch
+++ b/patches/api/0243-Added-PlayerLoomPatternSelectEvent.patch
@@ -6,10 +6,10 @@ Subject: [PATCH] Added PlayerLoomPatternSelectEvent
diff --git a/src/main/java/io/papermc/paper/event/player/PlayerLoomPatternSelectEvent.java b/src/main/java/io/papermc/paper/event/player/PlayerLoomPatternSelectEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41b90a7d8b
+index 0000000000000000000000000000000000000000..c614bd1a725adee0c434a9331099d0c35d7411f6
--- /dev/null
+++ b/src/main/java/io/papermc/paper/event/player/PlayerLoomPatternSelectEvent.java
-@@ -0,0 +1,77 @@
+@@ -0,0 +1,80 @@
+package io.papermc.paper.event.player;
+
+import org.bukkit.block.banner.PatternType;
@@ -18,6 +18,7 @@ index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41
+import org.bukkit.event.HandlerList;
+import org.bukkit.event.player.PlayerEvent;
+import org.bukkit.inventory.LoomInventory;
++import org.jetbrains.annotations.ApiStatus;
+import org.jetbrains.annotations.NotNull;
+
+/**
@@ -27,10 +28,12 @@ index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41
+
+ private static final HandlerList HANDLER_LIST = new HandlerList();
+
-+ private boolean cancelled;
+ private final LoomInventory loomInventory;
+ private PatternType patternType;
+
++ private boolean cancelled;
++
++ @ApiStatus.Internal
+ public PlayerLoomPatternSelectEvent(@NotNull Player player, @NotNull LoomInventory loomInventory, @NotNull PatternType patternType) {
+ super(player);
+ this.loomInventory = loomInventory;
@@ -44,7 +47,7 @@ index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41
+ */
+ @NotNull
+ public LoomInventory getLoomInventory() {
-+ return loomInventory;
++ return this.loomInventory;
+ }
+
+ /**
@@ -54,7 +57,7 @@ index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41
+ */
+ @NotNull
+ public PatternType getPatternType() {
-+ return patternType;
++ return this.patternType;
+ }
+
+ /**
@@ -68,7 +71,7 @@ index 0000000000000000000000000000000000000000..8cb05709f7cb5dee993ff6fea1626c41
+
+ @Override
+ public boolean isCancelled() {
-+ return cancelled;
++ return this.cancelled;
+ }
+
+ @Override