diff --git a/src/main/java/com/zixiken/dimdoors/items/ItemDimensionalDoor.java b/src/main/java/com/zixiken/dimdoors/items/ItemDimensionalDoor.java index e44dc51c..9059bf88 100644 --- a/src/main/java/com/zixiken/dimdoors/items/ItemDimensionalDoor.java +++ b/src/main/java/com/zixiken/dimdoors/items/ItemDimensionalDoor.java @@ -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 tooltip, boolean advanced) { + DimDoors.translateAndAdd("info.dimDoor", tooltip); } @Override - protected BaseDimDoor getDoorBlock() - { - return (BaseDimDoor) DimDoors.dimensionalDoor; - } + protected BaseDimDoor getDoorBlock() {return DimDoors.dimensionalDoor;} } \ No newline at end of file diff --git a/src/main/java/com/zixiken/dimdoors/render/ItemRenderManager.java b/src/main/java/com/zixiken/dimdoors/render/ItemRenderManager.java index 2385d546..061cb500 100644 --- a/src/main/java/com/zixiken/dimdoors/render/ItemRenderManager.java +++ b/src/main/java/com/zixiken/dimdoors/render/ItemRenderManager.java @@ -24,6 +24,7 @@ public class ItemRenderManager { //Item registration register(DimDoors.itemDDKey); + register(DimDoors.itemDimensionalDoor); } public static void addModelVariants() { diff --git a/src/main/resources/assets/dimdoors/models/item/itemDimDoor.json b/src/main/resources/assets/dimdoors/models/item/itemDimDoor.json new file mode 100644 index 00000000..b979536f --- /dev/null +++ b/src/main/resources/assets/dimdoors/models/item/itemDimDoor.json @@ -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 ] + } + } +}