001    package net.minecraft.src;
002    
003    import cpw.mods.fml.common.Side;
004    import cpw.mods.fml.common.asm.SideOnly;
005    
006    public class DerivedWorldInfo extends WorldInfo
007    {
008        private final WorldInfo field_76115_a;
009    
010        public DerivedWorldInfo(WorldInfo par1WorldInfo)
011        {
012            this.field_76115_a = par1WorldInfo;
013        }
014    
015        /**
016         * Gets the NBTTagCompound for the worldInfo
017         */
018        public NBTTagCompound getNBTTagCompound()
019        {
020            return this.field_76115_a.getNBTTagCompound();
021        }
022    
023        /**
024         * Creates a new NBTTagCompound for the world, with the given NBTTag as the "Player"
025         */
026        public NBTTagCompound cloneNBTCompound(NBTTagCompound par1NBTTagCompound)
027        {
028            return this.field_76115_a.cloneNBTCompound(par1NBTTagCompound);
029        }
030    
031        /**
032         * Returns the seed of current world.
033         */
034        public long getSeed()
035        {
036            return this.field_76115_a.getSeed();
037        }
038    
039        /**
040         * Returns the x spawn position
041         */
042        public int getSpawnX()
043        {
044            return this.field_76115_a.getSpawnX();
045        }
046    
047        /**
048         * Return the Y axis spawning point of the player.
049         */
050        public int getSpawnY()
051        {
052            return this.field_76115_a.getSpawnY();
053        }
054    
055        /**
056         * Returns the z spawn position
057         */
058        public int getSpawnZ()
059        {
060            return this.field_76115_a.getSpawnZ();
061        }
062    
063        /**
064         * Get current world time
065         */
066        public long getWorldTime()
067        {
068            return this.field_76115_a.getWorldTime();
069        }
070    
071        @SideOnly(Side.CLIENT)
072        public long getSizeOnDisk()
073        {
074            return this.field_76115_a.getSizeOnDisk();
075        }
076    
077        /**
078         * Returns the player's NBTTagCompound to be loaded
079         */
080        public NBTTagCompound getPlayerNBTTagCompound()
081        {
082            return this.field_76115_a.getPlayerNBTTagCompound();
083        }
084    
085        public int getDimension()
086        {
087            return this.field_76115_a.getDimension();
088        }
089    
090        /**
091         * Get current world name
092         */
093        public String getWorldName()
094        {
095            return this.field_76115_a.getWorldName();
096        }
097    
098        /**
099         * Returns the save version of this world
100         */
101        public int getSaveVersion()
102        {
103            return this.field_76115_a.getSaveVersion();
104        }
105    
106        @SideOnly(Side.CLIENT)
107    
108        /**
109         * Return the last time the player was in this world.
110         */
111        public long getLastTimePlayed()
112        {
113            return this.field_76115_a.getLastTimePlayed();
114        }
115    
116        /**
117         * Returns true if it is thundering, false otherwise.
118         */
119        public boolean isThundering()
120        {
121            return this.field_76115_a.isThundering();
122        }
123    
124        /**
125         * Returns the number of ticks until next thunderbolt.
126         */
127        public int getThunderTime()
128        {
129            return this.field_76115_a.getThunderTime();
130        }
131    
132        /**
133         * Returns true if it is raining, false otherwise.
134         */
135        public boolean isRaining()
136        {
137            return this.field_76115_a.isRaining();
138        }
139    
140        /**
141         * Return the number of ticks until rain.
142         */
143        public int getRainTime()
144        {
145            return this.field_76115_a.getRainTime();
146        }
147    
148        /**
149         * Gets the GameType.
150         */
151        public EnumGameType getGameType()
152        {
153            return this.field_76115_a.getGameType();
154        }
155    
156        @SideOnly(Side.CLIENT)
157    
158        /**
159         * Set the x spawn position to the passed in value
160         */
161        public void setSpawnX(int par1) {}
162    
163        @SideOnly(Side.CLIENT)
164    
165        /**
166         * Sets the y spawn position
167         */
168        public void setSpawnY(int par1) {}
169    
170        /**
171         * Set current world time
172         */
173        public void setWorldTime(long par1) {}
174    
175        @SideOnly(Side.CLIENT)
176    
177        /**
178         * Set the z spawn position to the passed in value
179         */
180        public void setSpawnZ(int par1) {}
181    
182        /**
183         * Sets the spawn zone position. Args: x, y, z
184         */
185        public void setSpawnPosition(int par1, int par2, int par3) {}
186    
187        public void setWorldName(String par1Str) {}
188    
189        /**
190         * Sets the save version of the world
191         */
192        public void setSaveVersion(int par1) {}
193    
194        /**
195         * Sets whether it is thundering or not.
196         */
197        public void setThundering(boolean par1) {}
198    
199        /**
200         * Defines the number of ticks until next thunderbolt.
201         */
202        public void setThunderTime(int par1) {}
203    
204        /**
205         * Sets whether it is raining or not.
206         */
207        public void setRaining(boolean par1) {}
208    
209        /**
210         * Sets the number of ticks until rain.
211         */
212        public void setRainTime(int par1) {}
213    
214        /**
215         * Get whether the map features (e.g. strongholds) generation is enabled or disabled.
216         */
217        public boolean isMapFeaturesEnabled()
218        {
219            return this.field_76115_a.isMapFeaturesEnabled();
220        }
221    
222        /**
223         * Returns true if hardcore mode is enabled, otherwise false
224         */
225        public boolean isHardcoreModeEnabled()
226        {
227            return this.field_76115_a.isHardcoreModeEnabled();
228        }
229    
230        public WorldType getTerrainType()
231        {
232            return this.field_76115_a.getTerrainType();
233        }
234    
235        public void setTerrainType(WorldType par1WorldType) {}
236    
237        /**
238         * Returns true if commands are allowed on this World.
239         */
240        public boolean areCommandsAllowed()
241        {
242            return this.field_76115_a.areCommandsAllowed();
243        }
244    
245        /**
246         * Returns true if the World is initialized.
247         */
248        public boolean isInitialized()
249        {
250            return this.field_76115_a.isInitialized();
251        }
252    
253        /**
254         * Sets the initialization status of the World.
255         */
256        public void setServerInitialized(boolean par1) {}
257    }