Rewrote block parsing, and further switch to BlockState

This commit is contained in:
Matthew Miller
2018-06-17 23:13:22 +10:00
parent 5f5a1797ad
commit 811f1d4433
13 changed files with 198 additions and 404 deletions

View File

@ -28,18 +28,6 @@ import com.sk89q.worldedit.util.Location;
*/
public abstract class BlockBag {
/**
* Stores a block as if it was mined.
*
* @param id the type ID
* @throws BlockBagException on error
* @deprecated Use {@link BlockBag#storeDroppedBlock(int, int)} instead
*/
@Deprecated
public void storeDroppedBlock(int id) throws BlockBagException {
storeDroppedBlock(id, 0);
}
/**
* Stores a block as if it was mined.
*
@ -55,18 +43,6 @@ public abstract class BlockBag {
storeItem(dropped);
}
/**
* Sets a block as if it was placed by hand.
*
* @param id the type ID
* @throws BlockBagException on error
* @deprecated Use {@link #fetchPlacedBlock(int,int)} instead
*/
@Deprecated
public void fetchPlacedBlock(int id) throws BlockBagException {
fetchPlacedBlock(id, 0);
}
/**
* Sets a block as if it was placed by hand.
*