Finished ItemDimensionalDoor.
This commit is contained in:
parent
31fe99fdbc
commit
a046508e45
3 changed files with 22 additions and 9 deletions
|
@ -4,7 +4,6 @@ import java.util.List;
|
||||||
|
|
||||||
import com.zixiken.dimdoors.DimDoors;
|
import com.zixiken.dimdoors.DimDoors;
|
||||||
import com.zixiken.dimdoors.blocks.BaseDimDoor;
|
import com.zixiken.dimdoors.blocks.BaseDimDoor;
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemDoor;
|
import net.minecraft.item.ItemDoor;
|
||||||
|
@ -18,16 +17,11 @@ public class ItemDimensionalDoor extends BaseItemDoor {
|
||||||
setUnlocalizedName(ID);
|
setUnlocalizedName(ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
|
||||||
{
|
DimDoors.translateAndAdd("info.dimDoor", tooltip);
|
||||||
DimDoors.translateAndAdd("info.dimDoor",par3List);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected BaseDimDoor getDoorBlock()
|
protected BaseDimDoor getDoorBlock() {return DimDoors.dimensionalDoor;}
|
||||||
{
|
|
||||||
return (BaseDimDoor) DimDoors.dimensionalDoor;
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -24,6 +24,7 @@ public class ItemRenderManager {
|
||||||
|
|
||||||
//Item registration
|
//Item registration
|
||||||
register(DimDoors.itemDDKey);
|
register(DimDoors.itemDDKey);
|
||||||
|
register(DimDoors.itemDimensionalDoor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void addModelVariants() {
|
public static void addModelVariants() {
|
||||||
|
|
|
@ -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 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue