public static synchronized EntityPallet getInstance() { if (myInstance == null) { myInstance = new EntityPallet(); myInstance.updateTree(); } return myInstance; }
/** Disposes the only instance of the entity pallet */ public static synchronized void clear() { if (myInstance != null) { myInstance.dispose(); myInstance = null; } }