63646566676869
/** * Configures this emitter to self-destruct when it runs out of particles. */ public void destroyOnEmpty () { onEmpty.connect(new UnitSlot() { @Override public void onEmit () { destroy(); }}); }
444546474849505152
/** * Returns a slot that calls render. Useful if your {@link #paint(Canvas)} method uses a react * value. */ protected UnitSlot renderSlot () { return new UnitSlot() { @Override public void onEmit () { render(); } }; }