Skip to content

Commit

Permalink
changed flags for detection of mob spawning blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
EtlamGit committed Jan 22, 2014
1 parent 657f601 commit 4a6169c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions blockidentifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,18 @@ class BlockInfo
{
public:
BlockInfo() {}
int id;
bool isOpaque();
bool isLiquid();
bool isTransparent();

int id;
QString name;
double alpha;
quint8 flags;
quint8 mask;
bool enabled;
double alpha;
quint8 mask;
bool enabled;
bool transparent;
bool liquid;
bool cubesolid;
quint32 colors[16];
};

Expand All @@ -62,11 +68,12 @@ class BlockIdentifier
public:
BlockIdentifier();
~BlockIdentifier();
int addDefinitions(JSONArray *,int pack=-1);
int addDefinitions(JSONArray *,int pack=-1);
void enableDefinitions(int);
void disableDefinitions(int);
BlockInfo &getBlock(int id,int data);
private:
void clearCache();
void parseDefinition(JSONObject *block,BlockInfo *parent,int pack);
QMap<quint32,QList<BlockInfo *> > blocks;
QList<QList<BlockInfo*> > packs;
Expand Down

0 comments on commit 4a6169c

Please sign in to comment.