public static boolean canReplacePart(World world,BlockPos pos,IMultipart oldPart,IMultipart newPart){
  IMultipartContainer container=getPartContainer(world,pos);
  if (container == null)   return false;
  return container.canReplacePart(oldPart,newPart);
}

public static boolean canReplacePart ( World world , BlockPos pos , IMultipart oldPart , IMultipart newPart ) { IMultipartContainer container = getPartContainer ( world , pos ) ; if ( container == null ) return false ; return container . canReplacePart ( oldPart , newPart ) ; }
checks whether or not the specified part can be replaced by another part to the world .
