Add missing upstream methods

This commit is contained in:
N0tMyFaultOG 2020-12-02 17:12:04 +01:00
parent 3b201536a8
commit 1bdac416d0
No known key found for this signature in database
GPG Key ID: 823348042DA95A81
2 changed files with 21 additions and 1 deletions

View File

@ -398,13 +398,18 @@ public class AsyncBlock implements Block {
} }
public boolean applyBoneMeal(@NotNull BlockFace face) { public boolean applyBoneMeal(@NotNull BlockFace face) {
throw new UnsupportedOperationException("FAWE does not support this method"); throw new UnsupportedOperationException("FAWE does not support this yet");
} }
public String getTranslationKey() { public String getTranslationKey() {
throw new UnsupportedOperationException("FAWE does not support this yet"); throw new UnsupportedOperationException("FAWE does not support this yet");
} }
@NotNull
@Override
public float getDestroySpeed(@NotNull ItemStack itemStack) {
throw new UnsupportedOperationException("FAWE does not support this yet");
}
@NotNull @NotNull
@Override @Override

View File

@ -649,6 +649,21 @@ public class AsyncWorld extends PassthroughExtent implements World {
parent.setThunderDuration(duration); parent.setThunderDuration(duration);
} }
@Override
public boolean isClearWeather() {
return parent.isClearWeather();
}
@Override
public void setClearWeatherDuration(int duration) {
parent.setClearWeatherDuration(duration);
}
@Override
public int getClearWeatherDuration() {
return parent.getClearWeatherDuration();
}
@Override @Override
public boolean createExplosion(double x, double y, double z, float power) { public boolean createExplosion(double x, double y, double z, float power) {
return this.createExplosion(x, y, z, power, false, true); return this.createExplosion(x, y, z, power, false, true);