From ea0d1c67026f2de15d04bd13a8fe08131c053848 Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Fri, 9 Nov 2012 12:49:55 -0500 Subject: [PATCH] Added AbstractMultiverseWorld as a basic skeleton for MultiverseWorld implementations. --- .../core/AbstractMultiverseWorld.java | 326 ++++++++++++++++++ 1 file changed, 326 insertions(+) create mode 100644 base/src/main/java/com/onarandombox/multiverse/core/AbstractMultiverseWorld.java diff --git a/base/src/main/java/com/onarandombox/multiverse/core/AbstractMultiverseWorld.java b/base/src/main/java/com/onarandombox/multiverse/core/AbstractMultiverseWorld.java new file mode 100644 index 00000000..fdaccde4 --- /dev/null +++ b/base/src/main/java/com/onarandombox/multiverse/core/AbstractMultiverseWorld.java @@ -0,0 +1,326 @@ +package com.onarandombox.multiverse.core; + +import com.onarandombox.multiverse.core.api.MultiverseWorld; +import com.onarandombox.multiverse.core.api.WorldProperties; +import com.onarandombox.multiverse.core.minecraft.Difficulty; +import com.onarandombox.multiverse.core.minecraft.GameMode; +import com.onarandombox.multiverse.core.minecraft.PlayerPosition; +import com.onarandombox.multiverse.core.minecraft.PortalType; +import com.onarandombox.multiverse.core.minecraft.WorldEnvironment; +import com.onarandombox.multiverse.core.minecraft.WorldType; + +import java.util.List; + +abstract class AbstractMultiverseWorld implements MultiverseWorld { + + private final WorldProperties worldProperties; + + AbstractMultiverseWorld(final WorldProperties worldProperties) { + this.worldProperties = worldProperties; + } + + @Override + public WorldType getWorldType() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public WorldEnvironment getEnvironment() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setEnvironment(WorldEnvironment environment) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public Difficulty getDifficulty() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setDifficulty(Difficulty difficulty) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public long getSeed() { + return 0; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setSeed(long seed) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getGenerator() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setGenerator(String generator) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public WorldProperties getWorldProperties() { + return worldProperties; + } + + @Override + public String getAllPropertyNames() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getAlias() { + return getWorldProperties().get(WorldProperties.ALIAS); + } + + @Override + public void setAlias(final String alias) { + getWorldProperties().set(WorldProperties.ALIAS, alias); + } + + @Override + public String getColor() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setColor(String color) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getStyle() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setStyle(String style) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getColoredWorldString() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean canAnimalsSpawn() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setAllowAnimalSpawn(boolean allowAnimalSpawn) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public List getAnimalList() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean canMonstersSpawn() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setAllowMonsterSpawn(boolean allowMonsterSpawn) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public List getMonsterList() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean isPVPEnabled() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setPVPMode(boolean pvpMode) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean isHidden() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setHidden(boolean hidden) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean isWeatherEnabled() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setEnableWeather(boolean enableWeather) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean isKeepingSpawnInMemory() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setKeepSpawnInMemory(boolean keepSpawnInMemory) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public PlayerPosition getSpawnLocation() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setSpawnLocation(PlayerPosition spawnLocation) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean getHunger() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setHunger(boolean hungerEnabled) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public GameMode getGameMode() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setGameMode(GameMode gameMode) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public double getPrice() { + return 0; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setPrice(double price) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public int getCurrency() { + return 0; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setCurrency(int item) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getRespawnToWorld() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setRespawnToWorld(String respawnWorld) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public double getScaling() { + return 0; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setScaling(double scaling) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean getAutoHeal() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setAutoHeal(boolean heal) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean getAdjustSpawn() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setAdjustSpawn(boolean adjust) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean getAutoLoad() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setAutoLoad(boolean autoLoad) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean getBedRespawn() { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setBedRespawn(boolean autoLoad) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void setPlayerLimit(int limit) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public int getPlayerLimit() { + return 0; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public String getTime() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public boolean setTime(String timeAsString) { + return false; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public void allowPortalMaking(PortalType type) { + //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public PortalType getAllowedPortals() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + @Override + public List getWorldBlacklist() { + return null; //To change body of implemented methods use File | Settings | File Templates. + } +}