Update to Minecraft 1.16.1

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2020-06-25 10:00:00 +10:00
parent 3fd0ae0a81
commit eed3a67ee8
36 changed files with 1299 additions and 151 deletions

View File

@@ -17,7 +17,7 @@ public enum Biome implements Keyed {
TAIGA,
SWAMP,
RIVER,
NETHER,
NETHER_WASTES,
THE_END,
FROZEN_OCEAN,
FROZEN_RIVER,
@@ -83,7 +83,11 @@ public enum Biome implements Keyed {
MODIFIED_WOODED_BADLANDS_PLATEAU,
MODIFIED_BADLANDS_PLATEAU,
BAMBOO_JUNGLE,
BAMBOO_JUNGLE_HILLS;
BAMBOO_JUNGLE_HILLS,
SOUL_SAND_VALLEY,
CRIMSON_FOREST,
WARPED_FOREST,
BASALT_DELTAS;
private final NamespacedKey key;

View File

@@ -46,7 +46,8 @@ public enum PatternType {
SKULL("sku"),
FLOWER("flo"),
MOJANG("moj"),
GLOBE("glb");
GLOBE("glb"),
PIGLIN("pig");
private final String identifier;
private static final Map<String, PatternType> byString = new HashMap<String, PatternType>();

View File

@@ -0,0 +1,44 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.NotNull;
/**
* 'orientation' is the direction the block is facing.
*/
public interface Jigsaw extends BlockData {
/**
* Gets the value of the 'orientation' property.
*
* @return the 'orientation' value
*/
@NotNull
Orientation getOrientation();
/**
* Sets the value of the 'orientation' property.
*
* @param orientation the new 'orientation' value
*/
void setOrientation(@NotNull Orientation orientation);
/**
* The directions the Jigsaw can be oriented.
*/
public enum Orientation {
DOWN_EAST,
DOWN_NORTH,
DOWN_SOUTH,
DOWN_WEST,
UP_EAST,
UP_NORTH,
UP_SOUTH,
UP_WEST,
WEST_UP,
EAST_UP,
NORTH_UP,
SOUTH_UP;
}
}

View File

@@ -0,0 +1,30 @@
package org.bukkit.block.data.type;
import org.bukkit.block.data.BlockData;
/**
* 'charges' represents the amount of times the anchor may still be used.
*/
public interface RespawnAnchor extends BlockData {
/**
* Gets the value of the 'charges' property.
*
* @return the 'charges' value
*/
int getCharges();
/**
* Sets the value of the 'charges' property.
*
* @param charges the new 'charges' value
*/
void setCharges(int charges);
/**
* Gets the maximum allowed value of the 'charges' property.
*
* @return the maximum 'charges' value
*/
int getMaximumCharges();
}

View File

@@ -0,0 +1,47 @@
package org.bukkit.block.data.type;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.Waterlogged;
import org.jetbrains.annotations.NotNull;
/**
* This class encompasses the 'north', 'east', 'south', 'west', height flags
* which are used to set the height of a wall.
*/
public interface Wall extends Waterlogged {
/**
* Gets the height of the specified face.
*
* @param face to check
* @return if face is enabled
*/
@NotNull
Height getHeight(@NotNull BlockFace face);
/**
* Set the height of the specified face.
*
* @param face to set
* @param height the height
*/
void setHeight(@NotNull BlockFace face, @NotNull Height height);
/**
* The different heights a face of a wall may have.
*/
public enum Height {
/**
* No wall present.
*/
NONE,
/**
* Low wall present.
*/
LOW,
/**
* Tall wall present.
*/
TALL;
}
}