Jump to content

[1.7.10] glass not render right


Xetapro12

Recommended Posts

code:

package com.BetterArmourAndTools.blocksitems;

import java.util.Random;

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.world.IBlockAccess;

public class ClearGlass extends Block {
            public ClearGlass(int id, Material mat){
		super(mat);
		this.setCreativeTab(BetterArmourAndTools.rubyTab);
		this.setHarvestLevel("pickaxe", 2);
	}	

		public void registerBlockIcons(IIconRegister reg)

		{
			this.blockIcon = reg.registerIcon("BetterArmourAndTools:Glass");
	}

		@Override
		public boolean isOpaqueCube() {
		    return true;
		}
		    public int quantityDropped(Random p_149745_1_)
		    {
		        return 0;
		    }

		    /**
		     * Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
		     */
		    @SideOnly(Side.CLIENT)
		    public int getRenderBlockPass()
		    {
		        return 0;
		    }

		    /**
		     * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
		     */
		    public boolean renderAsNormalBlock()
		    {
		        return false;
		    }

		    /**
		     * Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
		     */
		    protected boolean canSilkHarvest()
		    {
		        return true;
		    }

}

 

and why this happen: http://gyazo.com/38fe529f481962834cfd1fe38df4b335

 

NEWB! in java im sorry :/

Link to comment
Share on other sites

Jesus fucking christ... did you not already have a thread about this? Seriously -.-

 

So I'm not crazy!  For a few minutes there (as I can not find the other thread) I thought I was pre-cog'ing1 again.

 

1I don't have precognition, just a lot of events that make me go "did I dream that?"

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.