Files
minecraft-pe-0.6.1/src/world/level/dimension/Dimension.h
Shredder e346df682c Another Huge Commit my bad - shredder
Restored Java's Debug Screen using partial unused code and ported code, avaliable in options menu as a style

Slight Water texture is now overlayed when in water

Vignette function has been fixed and can now be toggled in options

World Generation now includes Tall Grass and Ferns both

Broken Frame Chart Graph found in the source has now been fixed and enabled when debug screen is turned on

Pie Chart works now and will appear when debug screen is opened

Most changes have not been tested on anything besides windows, will test it
2026-05-04 01:28:27 +05:00

68 lines
1.6 KiB
C++
Executable File

#ifndef NET_MINECRAFT_WORLD_LEVEL_DIMENSION__Dimension_H__
#define NET_MINECRAFT_WORLD_LEVEL_DIMENSION__Dimension_H__
//package net.minecraft.world.level.dimension;
#include "../../phys/Vec3.h"
class Level;
class BiomeSource;
class ChunkSource;
class Dimension
{
public:
static const int NORMAL = 0;
static const int NORMAL_DAYCYCLE = 10;
Dimension();
virtual ~Dimension();
virtual void init(Level* level);
//@fix @port The caller is responsible for this ChunkSource, I presume
virtual ChunkSource* createRandomLevelSource();
virtual bool isValidSpawn(int x, int z);
virtual bool isNaturalDimension() {
return false;
}
virtual float getTimeOfDay(long time, float a);
virtual float* getSunriseColor(float td, float a);
virtual Vec3 getFogColor(float td, float a);
virtual bool mayRespawn();
// @fix @port Caller is responsible (+ move this to a "factory method" outside?)
// @NOTE: RIGHT NOW, Level deletes the dimension.
static Dimension* getNew(int id);
protected:
virtual void updateLightRamp();
virtual void init();
public:
Level* level;
BiomeSource* biomeSource;
bool foggy;
bool ultraWarm;
bool hasCeiling;
float brightnessRamp[16];//Level::MAX_BRIGHTNESS + 1];
int id;
std::string getDimension();
// shredder added
int FogType; // lets us choose between what fog we want ig
protected:
long fogColor; //= 0x80daff;//0x406fe5;//0xc0d8ff;
float sunriseCol[4];
};
class LevelData;
class DimensionFactory
{
public:
static Dimension* createDefaultDimension(LevelData* data);
};
#endif /*NET_MINECRAFT_WORLD_LEVEL_DIMENSION__Dimension_H__*/