本文整理了Java中crazypants.enderio.base.paint.YetaUtil.refresh()
方法的一些代码示例,展示了YetaUtil.refresh()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YetaUtil.refresh()
方法的具体详情如下:
包路径:crazypants.enderio.base.paint.YetaUtil
类名称:YetaUtil
方法名:refresh
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
protected void updateEntityClient() {
YetaUtil.refresh(this);
if (isActive()) {
doHoover();
}
}
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void doUpdate() {
if (world.isRemote) {
YetaUtil.refresh(this);
return;
}
if (!registered) {
WirelessChargerController.instance.registerCharger(this);
registered = true;
disableTicking();
}
}
代码示例来源:origin: SleepyTrousers/EnderIO
protected void updateEntityClient() {
// check if the block on the client needs to update its texture
if (isActive() != lastActive) {
ticksSinceActiveChanged++;
if (lastActive ? ticksSinceActiveChanged > 20 : ticksSinceActiveChanged > 4) {
ticksSinceActiveChanged = 0;
lastActive = isActive();
updateBlock();
}
} else {
ticksSinceActiveChanged = 0;
}
if (hasSound()) {
updateSound();
}
YetaUtil.refresh(this);
}
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void doUpdate() {
if (world.isRemote) {
YetaUtil.refresh(this);
if (formed != formedRender) {
formedRender = formed;
updateBlock();
}
if (formed) {
doHoover();
}
} else {
if (formed) {
doHoover();
if (xpCon.getFluidAmount() > 0) {
doPush();
}
} else if (xpCon.getFluidAmount() > 0) {
formed = true;
markDirty();
updateBlock();
}
xpCon.setCanFill(!formed);
}
}
内容来源于网络,如有侵权,请联系作者删除!