Finished ItemDimensionalDoor.

This commit is contained in:
zangamj 2016-08-03 11:15:34 -04:00
parent 31fe99fdbc
commit a046508e45
3 changed files with 22 additions and 9 deletions

View file

@ -4,7 +4,6 @@ import java.util.List;
import com.zixiken.dimdoors.DimDoors;
import com.zixiken.dimdoors.blocks.BaseDimDoor;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemDoor;
@ -18,16 +17,11 @@ public class ItemDimensionalDoor extends BaseItemDoor {
setUnlocalizedName(ID);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
DimDoors.translateAndAdd("info.dimDoor",par3List);
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
DimDoors.translateAndAdd("info.dimDoor", tooltip);
}
@Override
protected BaseDimDoor getDoorBlock()
{
return (BaseDimDoor) DimDoors.dimensionalDoor;
}
protected BaseDimDoor getDoorBlock() {return DimDoors.dimensionalDoor;}
}

View file

@ -24,6 +24,7 @@ public class ItemRenderManager {
//Item registration
register(DimDoors.itemDDKey);
register(DimDoors.itemDimensionalDoor);
}
public static void addModelVariants() {

View file

@ -0,0 +1,18 @@
{
"parent": "builtin/generated",
"textures": {
"layer0": "dimdoors:items/itemDimDoor"
},
"display": {
"thirdperson": {
"rotation": [ -90, 0, 0 ],
"translation": [ 0, 1, -3 ],
"scale": [ 0.55, 0.55, 0.55 ]
},
"firstperson": {
"rotation": [ 0, -135, 25 ],
"translation": [ 0, 4, 2 ],
"scale": [ 1.7, 1.7, 1.7 ]
}
}
}