mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
get rid of some orphaned classes
This commit is contained in:
1 parent
3c23d27cf7
commit
b9cdef8209
11 files changed
+16
-1976
No files matched your search
@@ -19,9 +19,9 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class SlimeGel extends TConstructBlock
|
||||
{
|
||||
public SlimeGel(int id)
|
||||
public SlimeGel()
|
||||
{
|
||||
super(id, Material.sponge, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
|
||||
super(Material.sponge, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
|
||||
setCreativeTab(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@ public class SlimeLeaves extends BlockLeaves
|
||||
private static final String[] fastLeaves = new String[] { "slimeleaves_blue_fast" };
|
||||
private static final String[] fancyLeaves = new String[] { "slimeleaves_blue_fancy" };
|
||||
@SideOnly(Side.CLIENT)
|
||||
private Icon[] fastIcons;
|
||||
private IIcon[] fastIcons;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private Icon[] fancyIcons;
|
||||
private IIcon[] fancyIcons;
|
||||
|
||||
public SlimeLeaves()
|
||||
{
|
||||
@@ -66,7 +66,7 @@ public class SlimeLeaves extends BlockLeaves
|
||||
}
|
||||
}
|
||||
|
||||
public Icon getIcon (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
int tex = meta % 4;
|
||||
|
||||
|
||||
@@ -4,12 +4,13 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockFlower;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
import net.minecraftforge.common.IShearable;
|
||||
@@ -21,11 +22,11 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
|
||||
{
|
||||
private static final String[] grassTypes = new String[] { "slimegrass_blue_tall" };
|
||||
@SideOnly(Side.CLIENT)
|
||||
private Icon[] iconArray;
|
||||
private IIcon[] iconArray;
|
||||
|
||||
public SlimeTallGrass(int par1)
|
||||
public SlimeTallGrass()
|
||||
{
|
||||
super(par1, Material.vine);
|
||||
super(Material.vine);
|
||||
float f = 0.4F;
|
||||
this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f);
|
||||
setCreativeTab(TConstructRegistry.blockTab);
|
||||
@@ -35,7 +36,7 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
|
||||
/**
|
||||
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
|
||||
*/
|
||||
public Icon getIcon (int side, int meta)
|
||||
public IIcon getIcon (int side, int meta)
|
||||
{
|
||||
/*if (meta >= this.iconArray.length)
|
||||
{
|
||||
@@ -73,11 +74,11 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
|
||||
/**
|
||||
* returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
|
||||
*/
|
||||
public void getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List)
|
||||
public void getSubBlocks (Block b, CreativeTabs par2CreativeTabs, List par3List)
|
||||
{
|
||||
for (int j = 0; j < 1; ++j)
|
||||
{
|
||||
par3List.add(new ItemStack(par1, 1, j));
|
||||
par3List.add(new ItemStack(b, 1, j));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,9 +87,9 @@ public class SlimeTallGrass extends BlockFlower implements IShearable
|
||||
* When this method is called, your block should register all the icons it needs with the given IconRegister. This
|
||||
* is the only chance you get to register icons.
|
||||
*/
|
||||
public void registerIcons (IconRegister par1IconRegister)
|
||||
public void registerIcons (IIconRegister par1IconRegister)
|
||||
{
|
||||
this.iconArray = new Icon[grassTypes.length];
|
||||
this.iconArray = new IIcon[grassTypes.length];
|
||||
|
||||
for (int i = 0; i < this.iconArray.length; ++i)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user