mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-10-31 20:27:10 +00:00
Squash annotation test patch into base patch
This commit is contained in:
parent
605249c55e
commit
a495883369
@ -6,7 +6,7 @@ Subject: [PATCH] Add command block player edit event
|
||||
|
||||
diff --git a/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java b/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..ce6f6cbbdc82dc0b4e9c9d1f35fa79465dd97867
|
||||
index 0000000000000000000000000000000000000000..eed9a93475aa32992dc28b6677a0fab154a4fa38
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java
|
||||
@@ -0,0 +1,72 @@
|
||||
@ -31,7 +31,7 @@ index 0000000000000000000000000000000000000000..ce6f6cbbdc82dc0b4e9c9d1f35fa7946
|
||||
+ private String newCommand;
|
||||
+ private final CommandBlock commandBlock;
|
||||
+
|
||||
+ public CommandBlockPlayerEditEvent(Player player, String oldCommand, String newCommand, CommandBlock commandBlock)
|
||||
+ public CommandBlockPlayerEditEvent(@NotNull Player player, @NotNull String oldCommand, @NotNull String newCommand, @NotNull CommandBlock commandBlock)
|
||||
+ {
|
||||
+ this.player = player;
|
||||
+ this.oldCommand = oldCommand;
|
||||
@ -39,27 +39,27 @@ index 0000000000000000000000000000000000000000..ce6f6cbbdc82dc0b4e9c9d1f35fa7946
|
||||
+ this.commandBlock = commandBlock;
|
||||
+ }
|
||||
+
|
||||
+ public String getNewCommand()
|
||||
+ public @NotNull String getNewCommand()
|
||||
+ {
|
||||
+ return this.newCommand;
|
||||
+ }
|
||||
+
|
||||
+ public String getOldCommand()
|
||||
+ public @NotNull String getOldCommand()
|
||||
+ {
|
||||
+ return this.oldCommand;
|
||||
+ }
|
||||
+
|
||||
+ public void setNewCommand(final String newCommand)
|
||||
+ public void setNewCommand(@NotNull String newCommand)
|
||||
+ {
|
||||
+ this.newCommand = newCommand;
|
||||
+ }
|
||||
+
|
||||
+ public Player getPlayer()
|
||||
+ public @NotNull Player getPlayer()
|
||||
+ {
|
||||
+ return this.player;
|
||||
+ }
|
||||
+
|
||||
+ public CommandBlock getCommandBlock()
|
||||
+ public @NotNull CommandBlock getCommandBlock()
|
||||
+ {
|
||||
+ return this.commandBlock;
|
||||
+ }
|
||||
@ -84,7 +84,7 @@ index 0000000000000000000000000000000000000000..ce6f6cbbdc82dc0b4e9c9d1f35fa7946
|
||||
+}
|
||||
diff --git a/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java b/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..655814b19c1e2e8b25e133190664a250867ad6f2
|
||||
index 0000000000000000000000000000000000000000..9cc63909e8fb83984e4a0d0803e81a27cda65f88
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java
|
||||
@@ -0,0 +1,73 @@
|
||||
@ -110,7 +110,7 @@ index 0000000000000000000000000000000000000000..655814b19c1e2e8b25e133190664a250
|
||||
+ private String newCommand;
|
||||
+ private final CommandMinecart commandMinecart;
|
||||
+
|
||||
+ public CommandMinecartPlayerEditEvent(Player player, String oldCommand, String newCommand, CommandMinecart commandMinecart)
|
||||
+ public CommandMinecartPlayerEditEvent(@NotNull Player player, @NotNull String oldCommand, @NotNull String newCommand, @NotNull CommandMinecart commandMinecart)
|
||||
+ {
|
||||
+ this.player = player;
|
||||
+ this.oldCommand = oldCommand;
|
||||
@ -118,27 +118,27 @@ index 0000000000000000000000000000000000000000..655814b19c1e2e8b25e133190664a250
|
||||
+ this.commandMinecart = commandMinecart;
|
||||
+ }
|
||||
+
|
||||
+ public String getNewCommand()
|
||||
+ public @NotNull String getNewCommand()
|
||||
+ {
|
||||
+ return this.newCommand;
|
||||
+ }
|
||||
+
|
||||
+ public String getOldCommand()
|
||||
+ public @NotNull String getOldCommand()
|
||||
+ {
|
||||
+ return this.oldCommand;
|
||||
+ }
|
||||
+
|
||||
+ public void setNewCommand(final String newCommand)
|
||||
+ public void setNewCommand(@NotNull String newCommand)
|
||||
+ {
|
||||
+ this.newCommand = newCommand;
|
||||
+ }
|
||||
+
|
||||
+ public Player getPlayer()
|
||||
+ public @NotNull Player getPlayer()
|
||||
+ {
|
||||
+ return this.player;
|
||||
+ }
|
||||
+
|
||||
+ public CommandMinecart getCommandMinecart()
|
||||
+ public @NotNull CommandMinecart getCommandMinecart()
|
||||
+ {
|
||||
+ return this.commandMinecart;
|
||||
+ }
|
||||
|
@ -1,98 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Allink <arclicious@vivaldi.net>
|
||||
Date: Fri, 2 Jun 2023 21:57:30 +0100
|
||||
Subject: [PATCH] Make annotation test pass
|
||||
|
||||
|
||||
diff --git a/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java b/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java
|
||||
index ce6f6cbbdc82dc0b4e9c9d1f35fa79465dd97867..eed9a93475aa32992dc28b6677a0fab154a4fa38 100644
|
||||
--- a/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java
|
||||
+++ b/src/main/java/me/totalfreedom/scissors/event/block/CommandBlockPlayerEditEvent.java
|
||||
@@ -19,7 +19,7 @@ public class CommandBlockPlayerEditEvent extends Event implements Cancellable
|
||||
private String newCommand;
|
||||
private final CommandBlock commandBlock;
|
||||
|
||||
- public CommandBlockPlayerEditEvent(Player player, String oldCommand, String newCommand, CommandBlock commandBlock)
|
||||
+ public CommandBlockPlayerEditEvent(@NotNull Player player, @NotNull String oldCommand, @NotNull String newCommand, @NotNull CommandBlock commandBlock)
|
||||
{
|
||||
this.player = player;
|
||||
this.oldCommand = oldCommand;
|
||||
@@ -27,27 +27,27 @@ public class CommandBlockPlayerEditEvent extends Event implements Cancellable
|
||||
this.commandBlock = commandBlock;
|
||||
}
|
||||
|
||||
- public String getNewCommand()
|
||||
+ public @NotNull String getNewCommand()
|
||||
{
|
||||
return this.newCommand;
|
||||
}
|
||||
|
||||
- public String getOldCommand()
|
||||
+ public @NotNull String getOldCommand()
|
||||
{
|
||||
return this.oldCommand;
|
||||
}
|
||||
|
||||
- public void setNewCommand(final String newCommand)
|
||||
+ public void setNewCommand(@NotNull String newCommand)
|
||||
{
|
||||
this.newCommand = newCommand;
|
||||
}
|
||||
|
||||
- public Player getPlayer()
|
||||
+ public @NotNull Player getPlayer()
|
||||
{
|
||||
return this.player;
|
||||
}
|
||||
|
||||
- public CommandBlock getCommandBlock()
|
||||
+ public @NotNull CommandBlock getCommandBlock()
|
||||
{
|
||||
return this.commandBlock;
|
||||
}
|
||||
diff --git a/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java b/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java
|
||||
index 655814b19c1e2e8b25e133190664a250867ad6f2..9cc63909e8fb83984e4a0d0803e81a27cda65f88 100644
|
||||
--- a/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java
|
||||
+++ b/src/main/java/me/totalfreedom/scissors/event/block/CommandMinecartPlayerEditEvent.java
|
||||
@@ -20,7 +20,7 @@ public class CommandMinecartPlayerEditEvent extends Event implements Cancellable
|
||||
private String newCommand;
|
||||
private final CommandMinecart commandMinecart;
|
||||
|
||||
- public CommandMinecartPlayerEditEvent(Player player, String oldCommand, String newCommand, CommandMinecart commandMinecart)
|
||||
+ public CommandMinecartPlayerEditEvent(@NotNull Player player, @NotNull String oldCommand, @NotNull String newCommand, @NotNull CommandMinecart commandMinecart)
|
||||
{
|
||||
this.player = player;
|
||||
this.oldCommand = oldCommand;
|
||||
@@ -28,27 +28,27 @@ public class CommandMinecartPlayerEditEvent extends Event implements Cancellable
|
||||
this.commandMinecart = commandMinecart;
|
||||
}
|
||||
|
||||
- public String getNewCommand()
|
||||
+ public @NotNull String getNewCommand()
|
||||
{
|
||||
return this.newCommand;
|
||||
}
|
||||
|
||||
- public String getOldCommand()
|
||||
+ public @NotNull String getOldCommand()
|
||||
{
|
||||
return this.oldCommand;
|
||||
}
|
||||
|
||||
- public void setNewCommand(final String newCommand)
|
||||
+ public void setNewCommand(@NotNull String newCommand)
|
||||
{
|
||||
this.newCommand = newCommand;
|
||||
}
|
||||
|
||||
- public Player getPlayer()
|
||||
+ public @NotNull Player getPlayer()
|
||||
{
|
||||
return this.player;
|
||||
}
|
||||
|
||||
- public CommandMinecart getCommandMinecart()
|
||||
+ public @NotNull CommandMinecart getCommandMinecart()
|
||||
{
|
||||
return this.commandMinecart;
|
||||
}
|
Loading…
Reference in New Issue
Block a user