本文整理汇总了Java中ethanjones.cubes.graphics.assets.AssetManager类的典型用法代码示例。如果您正苦于以下问题:Java AssetManager类的具体用法?Java AssetManager怎么用?Java AssetManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AssetManager类属于ethanjones.cubes.graphics.assets包,在下文中一共展示了AssetManager类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LuaModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public LuaModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> luaFiles, FileHandle luaFolder) {
super(name, file, assetManager);
this.luaFiles = luaFiles;
this.luaFolder = luaFolder;
this.modStates = new ArrayList<ModState>();
this.globals = CubesLua.globals(); // each mod has its own globals
this.luaModEvent = new Multimap<ModState, LuaFunction>();
this.clientEventListeners = new ArrayList<LuaEventListener>();
this.serverEventListeners = new ArrayList<LuaEventListener>();
int length = Integer.MAX_VALUE;
String current = luaFiles.keySet().iterator().next();
for (Entry<String, FileHandle> entry : luaFiles.entrySet()) {
String s = entry.getKey();
if (s.toLowerCase().contains("init") && s.length() < length) {
length = s.length();
current = s;
}
}
initFile = name + "|" + current;
Log.debug("Using '" + initFile + "' as init file");
}
示例2: loadCore
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public static void loadCore() {
AssetManager core = Assets.getCoreAssetManager();
HashMap<String, FileHandle> map = new HashMap<String, FileHandle>();
for (Asset j : core.getAssets("json/")) {
map.put(j.getPath().substring(5), j.getFileHandle());
}
try {
coreMap = load(map);
} catch (IOException e) {
throw new CubesException("Failed to load core json", e);
}
}
示例3: JsonModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public JsonModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> jsonFiles) {
super(name, file, assetManager);
this.jsonFiles = jsonFiles;
List<ModState> modStates = new ArrayList<ModState>();
modStates.add(ModState.Json);
this.modStates = Collections.unmodifiableList(modStates);
}
示例4: JsonModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public JsonModInstance(String name, FileHandle file, AssetManager assetManager, Map<String, FileHandle> jsonFiles) {
super(name, file, assetManager);
this.jsonFiles = jsonFiles;
List<ModState> modStates = new ArrayList<ModState>();
modStates.add(ModState.Json);
this.modStates = Collections.unmodifiableList(modStates);
}
示例5: JavaModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public JavaModInstance(String name, FileHandle file, AssetManager assetManager, T mod) {
super(name, file, assetManager);
this.mod = mod;
modStates = new ArrayList<ModState>();
modEventHandlers = new HashMap<Class<? extends ModEvent>, Method>();
}
示例6: ModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
protected ModInstance(String name, FileHandle file, AssetManager assetManager) {
this.name = name;
this.file = file;
this.assetManager = assetManager;
}
示例7: getAssetManager
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public AssetManager getAssetManager() {
return assetManager;
}
示例8: ModInstance
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
protected ModInstance(String name, FileHandle file, AssetManager assetManager) {
this.name = name;
this.file = file;
this.assetManager = assetManager;
}
示例9: getAssetManager
import ethanjones.cubes.graphics.assets.AssetManager; //导入依赖的package包/类
public AssetManager getAssetManager() {
return assetManager;
}