Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/04/2012, 14:28
pendex21
 
Fecha de Ingreso: abril-2012
Mensajes: 6
Antigüedad: 12 años, 7 meses
Puntos: 0
Exclamación Error not a statement

Hola, yo de nuevo queria saber porque el codigo me tiraba este error.

src\minecraft\net\minecraft\src\mod_block.java:11: error: not a statement
ModLoader;RegisterBlock<Block>;

______________
Código:
package net.minecraft.src;
import java.util.Random;

public class mod_block extends BaseMod
{
	public static final Block Block = (new Block(159,Material.sand)).setHardness(0.5F).setResistance(50F).setBlockName("YouTube").setLightValue(1F);
	
	
	public mod_block()
	{
		ModLoader;RegisterBlock(Block);
		
		ModLoader.AddName(Block, "Da Block");
		
		Block.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/NewBlock.png");
		
		ModLoader.AddRecipe(new ItemStack(Block,4), new Object[]{
			"?%", Character.valueOf('?'), Block.dirt
		});
	}

	public String Version()
	{	
		return "1.2.5 Superfn";
	}

	@Override
	public String getVersion() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void load() {
		// TODO Auto-generated method stub
		
	}
}