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