Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.wizardofoz.basic.block;
- import com.wizardofoz.basic.OzMod;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- 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.util.IIcon;
- public class PlankBlockBlue extends Block {
- public static final String[] field_150096_a = new String[] {"Blue"};
- @SideOnly(Side.CLIENT)
- private IIcon[] field_150095_b;
- private static final String __OBFID = "CL_00000335";
- public PlankBlockBlue(Material p_i45394_1_) {
- super(p_i45394_1_);
- this.setCreativeTab(OzMod.OzTab);
- }
- /**
- * Gets the block's texture. Args: side, meta
- */
- @SideOnly(Side.CLIENT)
- public IIcon getIcon(int p_149691_1_, int p_149691_2_)
- {
- if (p_149691_2_ < 0 || p_149691_2_ >= this.field_150095_b.length)
- {
- p_149691_2_ = 0;
- }
- return this.field_150095_b[p_149691_2_];
- }
- /**
- * Determines the damage on the item the block drops. Used in cloth and wood.
- */
- public int damageDropped(int p_149692_1_)
- {
- return p_149692_1_;
- }
- /**
- * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
- */
- //@SideOnly(Side.CLIENT)
- //public void getSubBlocks(Item p_149666_1_, CreativeTabs p_149666_2_, List p_149666_3_)
- //{
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 0));
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 1));
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 2));
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 3));
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 4));
- //p_149666_3_.add(new ItemStack(p_149666_1_, 1, 5));
- //}
- @SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister p_149651_1_)
- {
- this.field_150095_b = new IIcon[field_150096_a.length];
- for (int i = 0; i < this.field_150095_b.length; ++i)
- {
- this.field_150095_b[i] = p_149651_1_.registerIcon(this.getTextureName() + "_" + field_150096_a[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment