private IMagicApiaryAuraProvider getAuraProvider(int x, int y, int z) {
Chunk chunk = worldObj.getChunkFromBlockCoords(x, z);
x %= 16;
z %= 16;
if (x < 0) {
x += 16;
}
if (z < 0) {
z += 16;
}
ChunkPosition cPos = new ChunkPosition(x, y, z);
TileEntity entity = (TileEntity)chunk.chunkTileEntityMap.get(cPos);
if (!(entity instanceof IMagicApiaryAuraProvider)) {
return null;
}
return (IMagicApiaryAuraProvider)entity;
}
TileEntityMagicApiary.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:MagicBees
作者:
评论列表
文章目录