buildcraft/tests/buildcraft/tests/BlockTestPathfinding.java

41 lines
1.1 KiB
Java
Executable file

/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.tests;
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;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import buildcraft.core.CreativeTabBuildCraft;
public class BlockTestPathfinding extends BlockContainer {
protected BlockTestPathfinding() {
super(Material.ground);
setCreativeTab(CreativeTabBuildCraft.BLOCKS.get());
}
@Override
public TileEntity createNewTileEntity(World var1, int var2) {
return new TileTestPathfinding();
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister par1IconRegister) {
this.blockIcon = par1IconRegister.registerIcon("buildcraft:testcase");
}
}