/// <summary> /// Gibt die Metadaten des Blocks an der angegebenen Koordinate zurück. /// </summary> /// <param name="x">X-Anteil der Koordinate des Blocks innerhalb des Chunks</param> /// <param name="y">Y-Anteil der Koordinate des Blocks innerhalb des Chunks</param> /// <param name="z">Z-Anteil der Koordinate des Blocks innerhalb des Chunks</param> /// <returns>Die Metadaten des angegebenen Blocks</returns> public int GetBlockMeta(int x, int y, int z) { IChunk chunk = GetChunk(x >> Chunk.LimitX, y >> Chunk.LimitY, z >> Chunk.LimitZ); if (chunk != null) return chunk.GetBlockMeta(x, y, z); return 0; }
public int GetBlockMeta(Index3 index, int meta) { IChunk chunk = GetChunk(index.X >> Chunk.LimitX, index.Y >> Chunk.LimitY, index.Z >> Chunk.LimitZ); if (chunk != null) { return(chunk.GetBlockMeta(index.X, index.Y, index.Z)); } return(0); }