@Test public void testToNative() { assertThat(converter.toNative(new Asset("nova", "stuff"))).isEqualTo(new ResourceLocation("nova", "stuff")); assertThat(converter.toNative(new Asset("nova", "otherStuff"))).isNotEqualTo(new ResourceLocation("nova:otherstuff")); assertThat(converter.toNative(new Asset("nova", "otherStuff"))).isEqualTo(new ResourceLocation("nova:otherStuff")); assertThat(converter.toNativeTexture(new Asset("nova", "stuff"))).isEqualTo(new ResourceLocation("nova", "stuff")); assertThat(converter.toNativeTexture(new Texture("nova", "otherStuff.png"))).isEqualTo(new ResourceLocation("nova:otherStuff")); assertThat(converter.toNativeTexture(new Texture("nova", "otherStuff.png"), true)).isEqualTo(new ResourceLocation("nova:otherStuff.png")); assertThat(converter.toNativeTexture(new BlockTexture("nova", "otherStuff.png"))).isEqualTo(new ResourceLocation("nova:otherStuff")); assertThat(converter.toNativeTexture(new BlockTexture("nova", "otherStuff.png"), true)).isEqualTo(new ResourceLocation("nova:otherStuff.png")); assertThat(converter.toNativeTexture(new ItemTexture("nova", "otherStuff.png"))).isEqualTo(new ResourceLocation("nova:otherStuff")); assertThat(converter.toNativeTexture(new ItemTexture("nova", "otherStuff.png"), true)).isEqualTo(new ResourceLocation("nova:otherStuff.png")); assertThat(converter.toNativeTexture(new EntityTexture("nova", "otherStuff.png"))).isEqualTo(new ResourceLocation("nova:../entities/otherStuff")); assertThat(converter.toNativeTexture(new EntityTexture("nova", "otherStuff.png"), true)).isEqualTo(new ResourceLocation("nova:../entities/otherStuff.png")); }
@Override public ResourceLocation toNative(Asset asset) { return new ResourceLocation(asset.domain.toLowerCase(), asset.path()); }
AssetConverter implements NativeConverter<Asset, ResourceLocation> { @Override public ResourceLocation toNative(Asset asset) { return new ResourceLocation(asset.domain.toLowerCase(), asset.path()); } }
AssetConverter implements NativeConverter<Asset, ResourceLocation> { @Override public ResourceLocation toNative(Asset asset) { return new ResourceLocation(asset.domain.toLowerCase(), asset.path()); }  }
AssetConverter implements NativeConverter<Asset, ResourceLocation> { @Override public ResourceLocation toNative(Asset asset) { return new ResourceLocation(asset.domain.toLowerCase(), asset.path()); }  static AssetConverter instance(); @Override Class<Asset> getNovaSide(); @Override Class<ResourceLocation> getNativeSide(); @Override Asset toNova(ResourceLocation resource); Asset toNovaTexture(ResourceLocation resource); @Override ResourceLocation toNative(Asset asset); ResourceLocation toNativeTexture(Asset asset); ResourceLocation toNativeTexture(Asset asset, boolean preserveExtension); ResourceLocation toNativeTexture(Asset asset, boolean preserveExtension, boolean removeType); }
AssetConverter implements NativeConverter<Asset, ResourceLocation> { @Override public ResourceLocation toNative(Asset asset) { return new ResourceLocation(asset.domain.toLowerCase(), asset.path()); }  static AssetConverter instance(); @Override Class<Asset> getNovaSide(); @Override Class<ResourceLocation> getNativeSide(); @Override Asset toNova(ResourceLocation resource); Asset toNovaTexture(ResourceLocation resource); @Override ResourceLocation toNative(Asset asset); ResourceLocation toNativeTexture(Asset asset); ResourceLocation toNativeTexture(Asset asset, boolean preserveExtension); ResourceLocation toNativeTexture(Asset asset, boolean preserveExtension, boolean removeType);  }