Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2014 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9ab2cb3051ad59019939 to your computer and use it in GitHub Desktop.
Save anonymous/9ab2cb3051ad59019939 to your computer and use it in GitHub Desktop.
package Blocks;
import pizzamod.PizzaModMain;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class blockTable extends BlockContainer {
public blockTable(Material material) {
super(material);
}
@Override
public TileEntity createNewTileEntity(World var1, int var2) {
return new TileEntityBTable();
}
public int getRenderType(){
return -1;
}
public boolean isOpaqueCube(){
return false;
}
public boolean renderAsNormalBlock(){
return false;
}
@Override
public void registerBlockIcons(IIconRegister p_149651_1_) {
// TODO Auto-generated method stub
super.registerBlockIcons(p_149651_1_);
}
}
package Blocks;
import pizzamod.PizzaModMain;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class blockTable extends BlockContainer {
public blockTable(Material material) {
super(material);
}
@Override
public TileEntity createNewTileEntity(World var1, int var2) {
return new TileEntityBTable();
}
public int getRenderType(){
return -1;
}
public boolean isOpaqueCube(){
return false;
}
public boolean renderAsNormalBlock(){
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment