@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.
}
}
TileEntityNuclearIOPort.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:Project-Zed
作者:
评论列表
文章目录