Implement missing methods

This commit is contained in:
NotMyFault 2021-03-12 12:23:44 +01:00
parent cde52f9f35
commit 6476345e44
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
3 changed files with 13 additions and 1 deletions

View File

@ -162,6 +162,11 @@ public class AsyncBlock implements Block {
return z;
}
@Override
public boolean isValidTool(@Nonnull ItemStack itemStack) {
return getDrops(itemStack).size() !=0;
}
@Nonnull
@Override
public Location getLocation() {

View File

@ -26,6 +26,7 @@ import org.bukkit.GameRule;
import org.bukkit.HeightMap;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.Particle;
import org.bukkit.Raid;
import org.bukkit.Sound;
@ -1406,6 +1407,12 @@ public class AsyncWorld extends PassthroughExtent implements World {
return parent.getChunkAtAsync(x, z, gen, urgent);
}
@Override
@NotNull
public NamespacedKey getKey() {
throw new UnsupportedOperationException("FAWE does not support this yet");
}
@Override
public boolean isDayTime() {
return parent.isDayTime();

View File

@ -108,7 +108,7 @@ class FileSystemSnapshotDatabaseTest {
reader.close();
}
TEMP_DIR = Files.createTempDirectory("worldedit-fs-snap-dbs");
TEMP_DIR = Files.createTempDirectory("worldedit-fs-snap-dbs").toRealPath();
}
@AfterAll