protected void renderCarrying(Screen screen, int yOffs) { if (carrying == null) return; carrying.yOffs -= yOffs; carrying.render(screen); carrying.yOffs += yOffs; }
public void drop() { carrying.removed = false; carrying.freezeTime = 10; carrying.justDroppedTicks = 80; carrying.setPos(pos); level.addEntity(carrying); carrying.onDrop(); carrying = null; }
public void pickup(Building b) { if (b.health > 0) { level.removeEntity(b); carrying = b; carrying.onPickup(this); } }