Java 类org.bukkit.metadata.MetadataStoreBase 实例源码
项目:SuperSkyBros
文件:WorldManager.java
/**
* Generate template world.
*
* @return the boolean true if world was created successfully
*/
private boolean generateTemplate() {
try {
SkyApi.getCMsg().INFO("Attempting to create template World");
World world = this.template.createWorld();
MetadataStoreBase meta = new MetadataStoreBase() {
@Override
protected String disambiguate(Object o, String s) {
return null;
}
};
List<MetadataValue> wm = world.getMetadata("456");
System.out.println(wm.toString());
SkyApi.getCMsg().INFO("Finished creating template World");
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}