Add more state data (isSolid())
This commit is contained in:
parent
9cff98807a
commit
eb5fe20502
13 changed files with 223 additions and 13 deletions
|
|
@ -176,6 +176,20 @@ public class DynmapPlugin
|
|||
for (int m = 1; m < 16; m++) {
|
||||
DynmapBlockState bs = new DynmapBlockState(basebs, m, bn, "meta=" + m);
|
||||
stateByID[(i << 4) + m] = bs;
|
||||
IBlockState blkstate = b.getStateFromMeta(m);
|
||||
Material mat = blkstate.getMaterial();
|
||||
if (mat.isSolid()) {
|
||||
bs.setSolid();
|
||||
}
|
||||
if (mat == Material.AIR) {
|
||||
bs.setAir();
|
||||
}
|
||||
if (mat == Material.WOOD) {
|
||||
bs.setLog();
|
||||
}
|
||||
if (mat == Material.LEAVES) {
|
||||
bs.setLeaves();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue