-
Notifications
You must be signed in to change notification settings - Fork 753
/
SearedSlab.java
54 lines (47 loc) · 1.36 KB
/
SearedSlab.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package tconstruct.blocks;
import java.util.List;
import tconstruct.common.TContent;
import tconstruct.common.TRepo;
import tconstruct.library.TConstructRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class SearedSlab extends SlabBase
{
public SearedSlab()
{
//TODO material.rock
super(Material.field_151576_e);
this.func_149647_a(TConstructRegistry.blockTab);
func_149711_c(12F);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons (IIconRegister iconRegister)
{
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon (int side, int meta)
{
meta = meta % 8;
if (meta == 0)
return TRepo.smeltery.getIcon(side, 2);
if (meta <= 3)
return TRepo.smeltery.getIcon(side, meta + 3);
return TRepo.smeltery.getIcon(side, meta + 4);
}
@Override
public void getSubBlocks (Block b, CreativeTabs tab, List list)
{
for (int iter = 0; iter < 8; iter++)
{
list.add(new ItemStack(b, 1, iter));
}
}
}