Finished ItemUnstableDoor.

This commit is contained in:
zangamj 2016-08-05 09:59:17 -04:00
parent 6ab572ee6f
commit fb8f71929b
4 changed files with 24 additions and 12 deletions

View file

@ -90,7 +90,7 @@ public class DimDoors {
public static Block warpDoor; public static Block warpDoor;
public static Block goldenDoor; public static Block goldenDoor;
public static BlockGoldDimDoor goldenDimensionalDoor; public static BlockGoldDimDoor goldenDimensionalDoor;
public static Block unstableDoor; public static UnstableDoor unstableDoor;
public static Block blockLimbo; public static Block blockLimbo;
public static DimensionalDoor dimensionalDoor; public static DimensionalDoor dimensionalDoor;
public static Block blockDimWall; public static Block blockDimWall;

View file

@ -4,9 +4,7 @@ import java.util.List;
import com.zixiken.dimdoors.blocks.BaseDimDoor; import com.zixiken.dimdoors.blocks.BaseDimDoor;
import com.zixiken.dimdoors.DimDoors; import com.zixiken.dimdoors.DimDoors;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemDoor;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector; import net.minecraft.util.StatCollector;
@ -17,17 +15,12 @@ public class ItemUnstableDoor extends BaseItemDoor {
super(DimDoors.unstableDoor, null); super(DimDoors.unstableDoor, null);
setUnlocalizedName(ID); setUnlocalizedName(ID);
} }
@SuppressWarnings({ "unchecked", "rawtypes" })
@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) {
{ tooltip.add(StatCollector.translateToLocal("info.chaosDoor"));
par3List.add(StatCollector.translateToLocal("info.chaosDoor"));
} }
@Override @Override
protected BaseDimDoor getDoorBlock() protected BaseDimDoor getDoorBlock() {return DimDoors.unstableDoor;}
{
return (BaseDimDoor) DimDoors.unstableDoor;
}
} }

View file

@ -34,6 +34,7 @@ public class ItemRenderManager {
register(DimDoors.itemRiftSignature); register(DimDoors.itemRiftSignature);
register(DimDoors.itemStabilizedRiftSignature); register(DimDoors.itemStabilizedRiftSignature);
register(DimDoors.itemStableFabric); register(DimDoors.itemStableFabric);
register(DimDoors.itemUnstableDoor);
} }
public static void addModelVariants() { public static void addModelVariants() {

View file

@ -0,0 +1,18 @@
{
"parent": "builtin/generated",
"textures": {
"layer0": "dimdoors:items/itemChaosDoor"
},
"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 ]
}
}
}