TileEntityNuclearIOPort.java 文件源码

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

项目:Project-Zed 作者:
@Override
public void update() {
    super.update();

    if (!worldObj.isRemote && worldObj.getTotalWorldTime() % 20L == 0) {
        byte current = (byte) this.getBlockMetadata();
        if (this.meta != current) setMetaOnUpdate(current);

        PacketHandler.INSTANCE.sendToAllAround(new MessageTileEntityNuclearIOPort(this),
                new TargetPoint(worldObj.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ(), 0x10));
    }

    else if (worldObj.isRemote && burnTime > 0) {
        burnTime--; // On client side, we can predict that burn time will be decreased each tick, and will be corrected via messages 1/sec.
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号