TileEntityMagicApiary.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:MagicBees 作者:
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;
  }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号