Update to Minecraft 1.13-pre7

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2018-07-15 10:00:00 +10:00
parent debc7172fd
commit 767e4f6ccf
199 changed files with 8301 additions and 3637 deletions

View File

@ -4,6 +4,7 @@ import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.data.BlockData;
import org.bukkit.material.MaterialData;
import org.bukkit.metadata.Metadatable;
@ -33,6 +34,13 @@ public interface BlockState extends Metadatable {
*/
MaterialData getData();
/**
* Gets the data for this block state.
*
* @return block specific data
*/
BlockData getBlockData();
/**
* Gets the type of this block state.
*
@ -40,15 +48,6 @@ public interface BlockState extends Metadatable {
*/
Material getType();
/**
* Gets the type-id of this block state.
*
* @return block type-id
* @deprecated Magic value
*/
@Deprecated
int getTypeId();
/**
* Gets the current light level of the block represented by this block state.
*
@ -123,6 +122,13 @@ public interface BlockState extends Metadatable {
*/
void setData(MaterialData data);
/**
* Sets the data for this block state.
*
* @param data New block specific data
*/
void setBlockData(BlockData data);
/**
* Sets the type of this block state.
*
@ -130,16 +136,6 @@ public interface BlockState extends Metadatable {
*/
void setType(Material type);
/**
* Sets the type-id of this block state.
*
* @param type Type-Id to change this block state to
* @return Whether it worked?
* @deprecated Magic value
*/
@Deprecated
boolean setTypeId(int type);
/**
* Attempts to update the block represented by this state, setting it to
* the new values as defined by this state.