Cleaned up a lot of code and introduced Kotlin to the project

This commit is contained in:
MattBDev
2020-01-14 19:44:09 -05:00
parent 2fb1c3bdbc
commit 2d5a8ce573
47 changed files with 268 additions and 307 deletions

View File

@ -151,7 +151,7 @@ public interface Extent extends InputExtent, OutputExtent {
* @param z the z coordinate
* @param uuid the unique identifier of the entity
*/
default @Nullable void removeEntity(int x, int y, int z, UUID uuid) {}
default void removeEntity(int x, int y, int z, UUID uuid) {}
/*
Queue based methods

View File

@ -60,7 +60,7 @@ public interface OutputExtent {
}
// The defaults need to remain for compatibility (the actual implementation still needs to override one of these)
default <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException {
default <B extends BlockStateHolder<B>> boolean setBlock(int x, int y, int z, B block) throws WorldEditException {
return setBlock(MutableBlockVector3.get(x, y, z), block);
}

View File

@ -210,7 +210,6 @@ public class BlockArrayClipboard extends DelegateClipboard implements Clipboard,
}
@Override
@Nullable
public void removeEntity(int x, int y, int z, UUID uuid) {
x -= offset.getX();
y -= offset.getY();