|
|
|
|
@@ -33,20 +33,17 @@ index 9dad814cf51bc59ec5dfbf14474fea6557de38aa..7baf7ee3b62135eda8f0d9c1d761b79f
|
|
|
|
|
public Class<T> getType() {
|
|
|
|
|
return type;
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/MaterialSetTag.java b/src/main/java/com/destroystokyo/paper/MaterialSetTag.java
|
|
|
|
|
index c91ea2a0679a7f3a5627b5a008e0b39df3332889..dbca3a2196cf2d7722226224e7f85237267e9d4d 100644
|
|
|
|
|
index a02a02aa0c87e0f0ed9e509e4dcab01565b3d92a..6c99f4b4960f8f982557bb42717a2868d57ce4b7 100644
|
|
|
|
|
--- a/src/main/java/com/destroystokyo/paper/MaterialSetTag.java
|
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/MaterialSetTag.java
|
|
|
|
|
@@ -22,6 +22,9 @@ import java.util.stream.Stream;
|
|
|
|
|
@@ -21,10 +21,14 @@ import java.util.stream.Stream;
|
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Material set tag
|
|
|
|
|
+ */
|
|
|
|
|
public class MaterialSetTag implements Tag<Material> {
|
|
|
|
|
|
|
|
|
|
private final NamespacedKey key;
|
|
|
|
|
@@ -29,6 +32,7 @@ public class MaterialSetTag implements Tag<Material> {
|
|
|
|
|
public class MaterialSetTag extends BaseTag<Material, MaterialSetTag> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated Use NamespacedKey version of constructor
|
|
|
|
|
@@ -54,7 +51,7 @@ index c91ea2a0679a7f3a5627b5a008e0b39df3332889..dbca3a2196cf2d7722226224e7f85237
|
|
|
|
|
*/
|
|
|
|
|
@Deprecated
|
|
|
|
|
public MaterialSetTag(@NotNull Predicate<Material> filter) {
|
|
|
|
|
@@ -37,6 +41,7 @@ public class MaterialSetTag implements Tag<Material> {
|
|
|
|
|
@@ -33,6 +37,7 @@ public class MaterialSetTag extends BaseTag<Material, MaterialSetTag> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated Use NamespacedKey version of constructor
|
|
|
|
|
@@ -62,7 +59,7 @@ index c91ea2a0679a7f3a5627b5a008e0b39df3332889..dbca3a2196cf2d7722226224e7f85237
|
|
|
|
|
*/
|
|
|
|
|
@Deprecated
|
|
|
|
|
public MaterialSetTag(@NotNull Collection<Material> materials) {
|
|
|
|
|
@@ -45,6 +50,7 @@ public class MaterialSetTag implements Tag<Material> {
|
|
|
|
|
@@ -41,6 +46,7 @@ public class MaterialSetTag extends BaseTag<Material, MaterialSetTag> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated Use NamespacedKey version of constructor
|
|
|
|
|
@@ -541,74 +538,6 @@ index 931ffa38faab86445a5d63364a47cb653ca3d4ed..97b9ade0e771eae663fb42f91e155450
|
|
|
|
|
*/
|
|
|
|
|
public int nextEntityId();
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
|
|
|
index e6d2abf284c103a8bcddd8b4f9cb34d86a4f2fa6..4df6482da0cc498cad50eabdac183bea3634c74b 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
|
|
|
@@ -3131,7 +3131,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param count the number of particles
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -3148,7 +3147,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param count the number of particles
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -3199,7 +3197,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -3220,7 +3217,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -3277,7 +3273,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* particle used (normally speed)
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -3300,7 +3295,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* particle used (normally speed)
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public default <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data) { spawnParticle(particle, null, null, x, y, z, count, offsetX, offsetY, offsetZ, extra, data, true); }// Paper start - Expand Particle API
|
|
|
|
|
/**
|
|
|
|
|
@@ -3374,7 +3368,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param force whether to send the particle to players within an extended
|
|
|
|
|
* range and encourage their client to render it regardless of
|
|
|
|
|
* settings
|
|
|
|
|
- * @param <T> Particle data type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force);
|
|
|
|
|
|
|
|
|
|
@@ -3400,7 +3393,6 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
|
|
|
* @param force whether to send the particle to players within an extended
|
|
|
|
|
* range and encourage their client to render it regardless of
|
|
|
|
|
* settings
|
|
|
|
|
- * @param <T> Particle data type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force);
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/WorldBorder.java b/src/main/java/org/bukkit/WorldBorder.java
|
|
|
|
|
index afb7b136b461202026290624836446cff9f9e45d..087579fdff09237409c9f80446e7a15a78f9040c 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/WorldBorder.java
|
|
|
|
|
@@ -670,7 +599,7 @@ index d1757f3d456ff9efce26ce8baa1d16d896908cc2..a5db52386e11e4b5511ae417a0e7ac92
|
|
|
|
|
TASK(ChatColor.GREEN),
|
|
|
|
|
CHALLENGE(ChatColor.DARK_PURPLE),
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
|
|
|
|
|
index 6933fd6ad353a2d008c4a64c52a64bf36bd8035c..2966d876af3a77966fab927f8714ebf06bf6c926 100644
|
|
|
|
|
index 0c72d00ad238ab69d7ae0941e3ecb6c86e71624d..73cf7437795ef185860bfefe51d9481fa297a939 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/block/Block.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/block/Block.java
|
|
|
|
|
@@ -183,6 +183,9 @@ public interface Block extends Metadatable {
|
|
|
|
|
@@ -805,18 +734,6 @@ index 2e17b2d4f759531fbe9ee8e9b00c839186af09ca..9382234722792b5920a2456187e07958
|
|
|
|
|
public interface AnimalTamer {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/AreaEffectCloud.java b/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
|
|
|
|
index bca9d3659f6fceeca4b7fecbc7034d6fdbc4581e..c2096b5344d48d855d031538ec32e0154bd9054d 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
|
|
|
|
@@ -142,7 +142,6 @@ public interface AreaEffectCloud extends Entity {
|
|
|
|
|
* @param particle the new particle type
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> the particle data type // Paper
|
|
|
|
|
*/
|
|
|
|
|
<T> void setParticle(@NotNull Particle particle, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/ArmorStand.java b/src/main/java/org/bukkit/entity/ArmorStand.java
|
|
|
|
|
index 8ca6c9eba926f436203af211c6e274a59ddb15e8..f61419d3ce15bd553a864e4e9cd988b57d8f9695 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/entity/ArmorStand.java
|
|
|
|
|
@@ -1015,58 +932,10 @@ index a6a7429ed2e1eefb2b12b7480ed74fcc3963a864..e8027e1d505dda6effbb1698550016e8
|
|
|
|
|
|
|
|
|
|
NORMAL(false),
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
|
index e398da35bef48b5846d8c66df75b1df11b43e382..8da3ce6d1ba6911cb1a4be2e425266bd4760c052 100644
|
|
|
|
|
index e0ceb4d285ef977398a083bc4f4295ebd0c91277..8da3ce6d1ba6911cb1a4be2e425266bd4760c052 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
|
@@ -1433,7 +1433,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* @param count the number of particles
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1450,7 +1449,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* @param count the number of particles
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1501,7 +1499,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1522,7 +1519,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1579,7 +1575,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* particle used (normally speed)
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1602,7 +1597,6 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
* particle used (normally speed)
|
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
|
- * @param <T> Type
|
|
|
|
|
*/
|
|
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
|
|
|
|
|
|
|
|
|
@@ -1782,6 +1776,8 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
@@ -1776,6 +1776,8 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
void resetCooldown();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -1075,7 +944,7 @@ index e398da35bef48b5846d8c66df75b1df11b43e382..8da3ce6d1ba6911cb1a4be2e425266bd
|
|
|
|
|
* @return the client option value of the player
|
|
|
|
|
*/
|
|
|
|
|
@NotNull
|
|
|
|
|
@@ -1802,6 +1798,9 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
@@ -1796,6 +1798,9 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
|
// Paper end
|
|
|
|
|
|
|
|
|
|
// Spigot start
|
|
|
|
|
@@ -1495,19 +1364,6 @@ index 23d55f756b2bb5a557bfae102d7039d8394fbe69..50e58cf9a494c2cf17b7f55918e3d21f
|
|
|
|
|
* @return the {@link net.md_5.bungee.api.chat.hover.content.Content} of that ItemStack
|
|
|
|
|
*/
|
|
|
|
|
@NotNull
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java
|
|
|
|
|
index 3fecde7a0d2dd45ca090dbcc49e6d85169bda443..595cf92aeab37e06e5409d2a34387e56340b49e3 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java
|
|
|
|
|
@@ -631,6 +631,8 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
|
|
|
|
*
|
|
|
|
|
* This expects that the DataVersion was stored on the root of the Compound, as saved from
|
|
|
|
|
* the {@link #serializeAsBytes()} API returned.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param bytes Bytes to deserialize
|
|
|
|
|
* @return ItemStack migrated to this version of Minecraft if needed.
|
|
|
|
|
*/
|
|
|
|
|
@NotNull
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/SaddledHorseInventory.java b/src/main/java/org/bukkit/inventory/SaddledHorseInventory.java
|
|
|
|
|
index 7944f26a3e2a92601c3be0e55c00c39cc16cf177..8e7bb66c96d34b73959c0653b2a8e7b422da35fe 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/inventory/SaddledHorseInventory.java
|
|
|
|
|
|