Skip to content

Commit

Permalink
Add horrible side texture and use toolforge-top.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaPePeR committed Aug 13, 2015
1 parent a3f054d commit dea6174
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package mapeper.ticonautotoolstation;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;

//Thanks to http://www.minecraftforge.net/wiki/Containers_and_GUIs
Expand Down Expand Up @@ -32,4 +36,26 @@ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer p

return true;
}

@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta)
{
if (side == 1) {
//Top
return icon[1];
}
return icon[0];
}

IIcon[] icon;
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister register)
{
icon = new IIcon[2];
icon[0] = register.registerIcon("autotoolstation:autotoolstation/sides");
icon[1] = register.registerIcon("tinker:toolforge_top");
//https://github.com/SlimeKnights/TinkersConstruct/blob/master/resources/assets/tinker/textures/blocks/toolforge_top.png
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dea6174

Please sign in to comment.