Added an entity, weathertype, and gamemode registry.

This commit is contained in:
Matthew Miller
2018-07-19 22:41:26 +10:00
parent 572bf04482
commit 663dd1f4d8
33 changed files with 747 additions and 115 deletions

View File

@ -36,6 +36,7 @@ import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldedit.util.Location;
import com.sk89q.worldedit.util.TreeGenerator.TreeType;
import com.sk89q.worldedit.world.biome.BaseBiome;
import com.sk89q.worldedit.world.weather.WeatherType;
import java.util.Collections;
import java.util.List;
@ -101,6 +102,24 @@ public class NullWorld extends AbstractWorld {
return false;
}
@Override
public WeatherType getWeather() {
return null;
}
@Override
public long getRemainingWeatherDuration() {
return 0;
}
@Override
public void setWeather(WeatherType weatherType) {
}
@Override
public void setWeather(WeatherType weatherType, long duration) {
}
@Override
public BlockState getBlock(Vector position) {
return BlockTypes.AIR.getDefaultState();