mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed apple textures
This commit is contained in:
parent
7f91a0758c
commit
89cc446be7
2 changed files with 8 additions and 4 deletions
|
@ -186,10 +186,11 @@ public class UItems {
|
||||||
if (UClient.isClientSide()) {
|
if (UClient.isClientSide()) {
|
||||||
ItemModels.registerAllVariants(cloud_slab, CloudType.getVariants("_cloud_slab"));
|
ItemModels.registerAllVariants(cloud_slab, CloudType.getVariants("_cloud_slab"));
|
||||||
ItemModels.registerAllVariants(cloud_block, CloudType.getVariants("_cloud_block"));
|
ItemModels.registerAllVariants(cloud_block, CloudType.getVariants("_cloud_block"));
|
||||||
|
ItemModels.registerAllVariants(apple, Unicopia.MODID, apple.getVariants());
|
||||||
ItemModels.registerAll(
|
ItemModels.registerAll(
|
||||||
cloud_spawner,
|
cloud_spawner,
|
||||||
|
|
||||||
apple, zap_apple,
|
zap_apple,
|
||||||
rotten_apple, cooked_zap_apple, dew_drop,
|
rotten_apple, cooked_zap_apple, dew_drop,
|
||||||
|
|
||||||
tomato, cloudsdale_tomato,
|
tomato, cloudsdale_tomato,
|
||||||
|
|
|
@ -23,9 +23,12 @@ public class ItemModels {
|
||||||
* Registers a model for the given item and all associated variants.
|
* Registers a model for the given item and all associated variants.
|
||||||
*/
|
*/
|
||||||
public static void registerAllVariants(Item item, String... variants) {
|
public static void registerAllVariants(Item item, String... variants) {
|
||||||
for (int i = 0; i < variants.length; i++) {
|
registerAllVariants(item, item.getRegistryName().getNamespace(), variants);
|
||||||
ModelLoader.setCustomModelResourceLocation(item, i, new ModelResourceLocation(item.getRegistryName().getNamespace() + ":" + variants[i]));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void registerAllVariants(Item item, String domain, String... variants) {
|
||||||
|
for (int i = 0; i < variants.length; i++) {
|
||||||
|
ModelLoader.setCustomModelResourceLocation(item, i, new ModelResourceLocation(domain + ":" + variants[i]));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue