Update to Minecraft 1.15.2

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2020-01-22 08:00:00 +11:00
parent 35e62b85bf
commit eb35e8f1d1
3 changed files with 34 additions and 8 deletions

View File

@ -5,7 +5,7 @@
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId> <artifactId>bukkit</artifactId>
<version>1.15.1-R0.1-SNAPSHOT</version> <version>1.15.2-R0.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Bukkit</name> <name>Bukkit</name>
@ -80,7 +80,7 @@
<!-- annotations --> <!-- annotations -->
<dependency> <dependency>
<groupId>org.jetbrains</groupId> <groupId>org.jetbrains</groupId>
<artifactId>annotations-java5</artifactId> <artifactId>annotations</artifactId>
<version>18.0.0</version> <version>18.0.0</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
@ -88,7 +88,7 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.12</version> <version>4.13</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -100,7 +100,7 @@
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId> <artifactId>asm-tree</artifactId>
<version>7.2</version> <version>7.3.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -148,6 +148,16 @@ public final class GameRule<T> {
*/ */
public static final GameRule<Boolean> FIRE_DAMAGE = new GameRule<>("fireDamage", Boolean.class); public static final GameRule<Boolean> FIRE_DAMAGE = new GameRule<>("fireDamage", Boolean.class);
/**
* Whether patrols should naturally spawn.
*/
public static final GameRule<Boolean> DO_PATROL_SPAWNING = new GameRule<>("doPatrolSpawning", Boolean.class);
/**
* Whether traders should naturally spawn.
*/
public static final GameRule<Boolean> DO_TRADER_SPAWNING = new GameRule<>("doTraderSpawning", Boolean.class);
// Numerical rules // Numerical rules
/** /**
* How often a random block tick occurs (such as plant growth, leaf decay, * How often a random block tick occurs (such as plant growth, leaf decay,

View File

@ -16,7 +16,11 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
/** /**
* Represents a stack of items * Represents a stack of items.
* <p>
* <b>IMPORTANT: An <i>Item</i>Stack is only designed to contain <i>items</i>. Do not
* use this class to encapsulate Materials for which {@link Material#isItem()}
* returns false.</b>
*/ */
public class ItemStack implements Cloneable, ConfigurationSerializable { public class ItemStack implements Cloneable, ConfigurationSerializable {
private Material type = Material.AIR; private Material type = Material.AIR;
@ -28,7 +32,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
protected ItemStack() {} protected ItemStack() {}
/** /**
* Defaults stack size to 1, with no extra data * Defaults stack size to 1, with no extra data.
* <p>
* <b>IMPORTANT: An <i>Item</i>Stack is only designed to contain
* <i>items</i>. Do not use this class to encapsulate Materials for which
* {@link Material#isItem()} returns false.</b>
* *
* @param type item material * @param type item material
*/ */
@ -37,7 +45,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
} }
/** /**
* An item stack with no extra data * An item stack with no extra data.
* <p>
* <b>IMPORTANT: An <i>Item</i>Stack is only designed to contain
* <i>items</i>. Do not use this class to encapsulate Materials for which
* {@link Material#isItem()} returns false.</b>
* *
* @param type item material * @param type item material
* @param amount stack size * @param amount stack size
@ -109,7 +121,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
/** /**
* Sets the type of this item * Sets the type of this item
* <p> * <p>
* Note that in doing so you will reset the MaterialData for this stack * Note that in doing so you will reset the MaterialData for this stack.
* <p>
* <b>IMPORTANT: An <i>Item</i>Stack is only designed to contain
* <i>items</i>. Do not use this class to encapsulate Materials for which
* {@link Material#isItem()} returns false.</b>
* *
* @param type New type to set the items in this stack to * @param type New type to set the items in this stack to
*/ */