Holy huge commit with unhelpful name batman!
-Added TRNoDestroy (for items that do not use JSONDestroyer) -Batteries now use item overrides to display different texture when empty -Fixed diamond nugget unity texture -Removed new fluid sources from JEI -Fixed empty cell lang entry
This commit is contained in:
parent
0bbc088524
commit
a719a1c563
21 changed files with 163 additions and 63 deletions
|
@ -1,9 +1,11 @@
|
|||
package techreborn.client;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import techreborn.init.ModBlocks;
|
||||
import techreborn.init.ModItems;
|
||||
|
||||
public class RegisterItemJsons
|
||||
{
|
||||
|
@ -15,12 +17,35 @@ public class RegisterItemJsons
|
|||
|
||||
private static void registerItems()
|
||||
{
|
||||
register(ModItems.reBattery, "reBattery");
|
||||
register(ModItems.lithiumBattery, "lithiumBattery");
|
||||
register(ModItems.energyCrystal, "energyCrystal");
|
||||
register(ModItems.lapotronCrystal, "lapotronCrystal");
|
||||
}
|
||||
|
||||
private static void registerBlocks()
|
||||
{
|
||||
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(
|
||||
Item.getItemFromBlock(ModBlocks.ironFence), 0,
|
||||
new ModelResourceLocation("techreborn:ironFence", "inventory"));
|
||||
register(ModBlocks.ironFence, "ironFence");
|
||||
}
|
||||
|
||||
private static void register(Item item, int meta, String name)
|
||||
{
|
||||
ModelLoader.setCustomModelResourceLocation(item, meta,
|
||||
new ModelResourceLocation("techreborn:" + name, "inventory"));
|
||||
}
|
||||
|
||||
private static void register(Item item, String name)
|
||||
{
|
||||
register(item, 0, name);
|
||||
}
|
||||
|
||||
private static void register(Block block, int meta, String name)
|
||||
{
|
||||
register(Item.getItemFromBlock(block), meta, name);
|
||||
}
|
||||
|
||||
private static void register(Block block, String name)
|
||||
{
|
||||
register(Item.getItemFromBlock(block), 0, name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue