So I'm making a custom workbench and I've come across a problem. I have no clue how to make it so that "world.getBlockState" wouldn't come up as an error because it wants a BlockPos and inserting just x y z doesn't work. How do I fix this and is there an easier way of doing this?
Obviously I'm also getting an error on "new ContainerWorkingStation(player.inventory, world, BlockPos)" this block pos but i need it to be block pos ...
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world,
int x, int y, int z) {
TileEntity entity = world.getTileEntity(new BlockPos(x, y, z));
if(ID == GrogsmodsBlocks.guiIDworkingStation){
return ID == GrogsmodsBlocks.guiIDworkingStation && world.getBlockState(??) == GrogsmodsBlocks.guiIDworkingStation ? new ContainerWorkingStation(player.inventory, world, BlockPos) : null;
}
}