コード例 #1
0
 static void registerAnimations() {
   TextureObject texture = TexturePackAPI.getTextureObject(TexturePackAPI.ITEMS_PNG);
   if (texture instanceof TextureAtlas) {
     List<TextureAtlasSprite> animations = ((TextureAtlas) texture).animations;
     for (FancyDial instance : instances.values()) {
       instance.registerAnimation(animations);
     }
   }
 }
コード例 #2
0
 static void clearAll() {
   logger.finer("FancyDial.clearAll");
   if (initialized) {
     active = false;
     setupInfo.clear();
   }
   for (FancyDial instance : instances.values()) {
     if (instance != null) {
       instance.finish();
     }
   }
   instances.clear();
   initialized = true;
 }