forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
23
src/world/level/levelgen/feature/Feature.h
Executable file
23
src/world/level/levelgen/feature/Feature.h
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_LEVEL_LEVELGEN_FEATURE__Feature_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_LEVELGEN_FEATURE__Feature_H__
|
||||
|
||||
//package net.minecraft.world.level.levelgen.feature;
|
||||
|
||||
#include "../../Level.h"
|
||||
class Random;
|
||||
|
||||
class Feature
|
||||
{
|
||||
public:
|
||||
Feature(bool doUpdate = false);
|
||||
virtual ~Feature() {}
|
||||
virtual bool place(Level* level, Random* random, int x, int y, int z) = 0;
|
||||
virtual void init(float v1, float v2, float v3) {}
|
||||
protected:
|
||||
void placeBlock(Level* level, int x, int y, int z, int tile);
|
||||
void placeBlock(Level* level, int x, int y, int z, int tile, int data);
|
||||
private:
|
||||
bool doUpdate;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_LEVELGEN_FEATURE__Feature_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue