Fix item package

This commit is contained in:
Ben Spiers committed 2016-01-25 00:54:05 +00:00
1 parent 591fc1e4b4
commit 8af7ec270a
53 files changed
+309 -397

No files matched your search

+6
View File
@@ -144,6 +144,12 @@ public class Coord4D extends BlockPos
return world.getBlockState(this).getBlock();
}
public int getBlockMeta(IBlockAccess world)
{
IBlockState state = getBlockState(world);
return state == null ? 0 : state.getBlock().getMetaFromState(state);
}
/**
* Writes this Coord4D's data to an NBTTagCompound.
* @param nbtTags - tag compound to write to