Guest User

Untitled

a guest
Apr 16th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. package com.webs.legouni_craft.lucmod.models;
  2.  
  3. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  4. import net.minecraft.item.Item;
  5. import net.minecraft.item.ItemStack;
  6. import net.minecraft.util.ResourceLocation;
  7.  
  8. public class TestDiamondSwordModel extends CustomItemModel {
  9.    
  10.     public TestDiamondSwordModel(Item item) {
  11.         super(item);
  12.     }
  13.  
  14.     @Override
  15.     public ModelResourceLocation getModelLocation(ItemStack stack) {
  16.         return new ModelResourceLocation("apple", "inventory");
  17.     }
  18.  
  19.     @Override
  20.     protected ResourceLocation[] variants() {
  21.         return new ResourceLocation[] {
  22.             new ResourceLocation("apple"),
  23.             new ResourceLocation("diamond_sword")
  24.         };
  25.     }
  26.  
  27. }
Add Comment
Please, Sign In to add comment