Sa ne fonctionner pas ducoups j’ai mis sa :
package com.adamitemod.mod.uncraft;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.Random;
import com.adamitemod.mod.AdamiteMod;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
public class BlockUncraftingTable extends Block
{
public BlockUncraftingTable()
{
super(Material.wood);
setResistance(8F);
setHarvestLevel("pickaxe", 2);
setCreativeTab(AdamiteMod.Ada);
setHardness(8F);
}
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ)
{
if(FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER)
{
int n1 = AdamiteMod.standardLevel;
int n2 = AdamiteMod.maxUsedLevel;
}
player.openGui(AdamiteMod.instance, 0, world, pos.getX(), pos.getY(), pos.getZ());
checkForPorteManteau(player, world, pos.getX(), pos.getY(), pos.getZ());
return true;
}
public void onBlockAdded(World par1World, int par2, int par3, int par4)
{
if(!par1World.isRemote)
{
}
}
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, Block par5)
{
if(!par1World.isRemote)
{
}
}
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
}
private void checkForPorteManteau(EntityPlayer player, World w, int x, int y, int z)
{
boolean furnace = false, chest = false, workbench = false;
}
}
mais il y a un probléme a la ligne 34 à “BlockPos” et “IBlockState”