mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Implement missing methods
This commit is contained in:
@ -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() {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user