public void process(long ticks, Level level) { super.process(ticks, level); if (shield.getVisibility()) { shield.rotateY((float) ticks * 0.3f); // shield.setScale(1+(float)Math.sin(shield.getZAxis().x)/6f); } }
public void setToLocalObject(LocalObject lo) { super.setToLocalObject(lo); if (lo.isInvincible() && !shield.getVisibility()) { shield.setVisibility(true); } else { if (!lo.isInvincible()) { shield.setVisibility(false); } } }
public void removeFromWorld(World world) { super.removeFromWorld(world); world.removeObject(shield); }
public void addToWorld(World world) { super.addToWorld(world); world.addObject(shield); }